Gfx corrupted and not updated after window restore (win98, OpenGL)

Hello,

I’ve spent a few hours googling on this subject and looking at SDL’s doc
without finding any answer:

I’m programming an SDL+OpenGL game that runs in a window under Windows
98. When I iconify the window to the task bar (manually, not in my
code), then restore it, the contents of the window are corrupted at the
top, and the gfx are not updated even though the game is running (I
hear the sounds when I move the (invisible) mouse pointer over GUI
elements).

This happens with SDL 1.2.6 and 1.2.7.
The PC uses a Radeon 9200 SE with recent drivers.

Does that ring a bell to anyone?

I haven’t actually tried to find a solution by myself apart from looking
on the web, but I thought I’d ask here before wasting time on this.

Thanks!–
Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.

afaik you have to restore the opengl textures after you’re app was
minimized or alt+tabbed

Olivier Fabre wrote:> Hello,

I’ve spent a few hours googling on this subject and looking at SDL’s doc
without finding any answer:

I’m programming an SDL+OpenGL game that runs in a window under Windows
98. When I iconify the window to the task bar (manually, not in my
code), then restore it, the contents of the window are corrupted at the
top, and the gfx are not updated even though the game is running (I
hear the sounds when I move the (invisible) mouse pointer over GUI
elements).

This happens with SDL 1.2.6 and 1.2.7.
The PC uses a Radeon 9200 SE with recent drivers.

Does that ring a bell to anyone?

I haven’t actually tried to find a solution by myself apart from looking
on the web, but I thought I’d ask here before wasting time on this.

Thanks!

'lo Florian,On 08/07/2004, Florian Hufsky, you wrote:

afaik you have to restore the opengl textures after you’re app was
minimized or alt+tabbed

Well, I forgot to write this but when I manage to click on my "help"
button then the display starts being updated again, without any gfx
corruption! So I guess that the textures don’t need to be
re-uploaded… I’ll have to test things more and see what happens in my
help routine that doesn’t happen the rest of the time… (I’ve just had
a quick look and there really doesn’t seem to be anything that should
restore the display…)

Thanks

Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.

it sounds like you need to redraw everything to the screen when you detect
that your app has become active again> ----- Original Message -----

From: off@free.fr (Olivier Fabre)
To: “A list for developers using the SDL lib”
Sent: Thursday, July 08, 2004 1:38 AM
Subject: [SDL] Re: Gfx corrupted and not updated after window restore
(win98,OpenGL)

'lo Florian,

On 08/07/2004, Florian Hufsky, you wrote:

afaik you have to restore the opengl textures after you’re app was
minimized or alt+tabbed

Well, I forgot to write this but when I manage to click on my "help"
button then the display starts being updated again, without any gfx
corruption! So I guess that the textures don’t need to be
re-uploaded… I’ll have to test things more and see what happens in my
help routine that doesn’t happen the rest of the time… (I’ve just had
a quick look and there really doesn’t seem to be anything that should
restore the display…)

Thanks

Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

'lo Alan,On 08/07/2004, Alan Wolfe, you wrote:

it sounds like you need to redraw everything to the screen when you
detect that your app has become active again

But that’s what I’m already doing: everything is redrawn in my main
loop, all the time.


Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.