You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
On 2009-05-18 12:28:14 +0000, Alexander Hirsch wrote:
On 2009-10-10 12:38:19 +0000, Sam Lantinga wrote:
On 2011-01-09 07:06:47 +0000, Nathaniel J Fries wrote:
On 2011-03-11 18:28:42 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: