Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D3D-Error DRIVERINTERNALERROR when minimizing SDL_Window #109

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

D3D-Error DRIVERINTERNALERROR when minimizing SDL_Window #109

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: Windows (XP), x86

Comments on the original bug report:

On 2008-10-08 09:10:34 +0000, Alexander Hirsch wrote:

I created a window like this:
SDL_CreateWindow("Title", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 600, SDL_WINDOW_SHOWN)
and a renderer like this:
SDL_CreateRenderer(mainWnd, -1, SDL_RENDERER_PRESENTFLIP2|SDL_RENDERER_PRESENTVSYNC|SDL_RENDERER_ACCELERATED)
and I can draw on it:
SDL_SelectRenderer(mainWnd)
SDL_RenderFill(0x22, 0x22, 0xFF, SDL_ALPHA_OPAQUE, NULL)
none of these functions return -1.

When I minimize the window I get the SDL-Error "Reset(): DRIVERINTERNALERROR" and when I open it again, I get the SDL-Error "Clear(): INVALIDCALL" when executing SDL_RenderFill (and it returns -1). The window also seems quite small now... (resizing before rendering does now help though)

I have a GeForce 9600 GT and as far as I know it works fine. I have updated drivers (v178.13) and DirectX (9.0c August 2008) and use an up-to-date version of the SDL-trunk (subversion 4104).
A friend of mine gets the same error (he has a 6800 GTS).

On 2009-05-18 12:28:14 +0000, Alexander Hirsch wrote:

I lost my interest after a while, but I've come back to see if this bug was resolved. And as it isn't I thought I might as well tackle it again and was able to pinpoint the root of this bug:

When you minimize a window the event SDL_WINDOWEVENT_RESIZED gets pushed and handled to call SDL_OnWindowResized, which of course calls D3D_DisplayModeChanged if the renderer is DirectX and there D3D_Reset gets called, which sets the error. My guess is, that you can't reset the D3DDevice if width and/or height are 0.
The probably invalid D3DDevice then causes more errors to come up.

On 2009-10-10 12:38:19 +0000, Sam Lantinga wrote:

Thanks for the info, I'll take a look!

On 2011-01-09 07:06:47 +0000, Nathaniel J Fries wrote:

Does this bug still exist? I am not getting it on Windows 7.

On 2011-03-11 18:28:42 +0000, Sam Lantinga wrote:

I believe this is fixed in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Can you reopen this bug if you're still seeing it?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant