XP: Texture was not created with this renderer

I’m seeing a strange bug in SDL 1.3 under Windows XP.? If I have a window with an SDL_Window on it, and I Alt-Tab over to some other window that covers it and then back, the next SDL_RenderCopy call will fail with “Texture was not created with this renderer.”

Using the OpenGL renderer, and the textures were all created just fine.? Any idea what’s going on?? Is it somehow losing or having to recreate renderer state when the window gets covered?? If so, how do I get a programmatic notification of this so I can reload my textures?

Mason

…anybody?________________________________
From: @Mason_Wheeler (Mason Wheeler)
Subject: [SDL] XP: Texture was not created with this renderer

I’m seeing a strange bug in SDL 1.3 under Windows XP.? If I have a window with an SDL_Window on it, and I Alt-Tab over to some other window that covers it and then back, the next SDL_RenderCopy call will fail with “Texture was not created with this renderer.”

Using the OpenGL renderer, and the textures were all created just fine.? Any idea what’s going on?? Is it somehow losing or having to recreate renderer state when the window gets covered?? If so, how do I get a programmatic notification of this so I can reload my textures?

Mason

Does the window get minimised?

I’ve only seen this happen when the window gets minimised.

You should get ACTIVE events when the window changes, so you could reload in
there. For other opengl apps, I have not seen this happen. But I haven’t
tried and SDL 1.3 apps on xp.

Have you seen this behaviour with any other SDL 1.3 apps?

cheers,On Mon, Oct 24, 2011 at 2:12 PM, Mason Wheeler wrote:

…anybody?


From: Mason Wheeler
**Subject: [SDL] XP: Texture was not created with this renderer

I’m seeing a strange bug in SDL 1.3 under Windows XP. If I have a window
with an SDL_Window on it, and I Alt-Tab over to some other window that
covers it and then back, the next SDL_RenderCopy call will fail with
"Texture was not created with this renderer."

Using the OpenGL renderer, and the textures were all created just fine.
Any idea what’s going on? Is it somehow losing or having to recreate
renderer state when the window gets covered? If so, how do I get a
programmatic notification of this so I can reload my textures?

Mason


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org