Testgl.c -twice -logo bug

Hi,

if testgl is run using ‘testgl -twice -logo’ then, when the window is
opened the second time, the logo is displayed as a blue square instead
of the happy-face.

This happens on win32 and X and is because the OpenGL texture isn’t
recreated (or bound?) the second time.

The enclosed patch fixes the problem but the example code is creaking at
the seams a bit :slight_smile:

cheers,
John.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: testgl-twice-logo-fix.diff
Type: application/octet-stream
Size: 5179 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020911/dfb7fb7b/attachment.obj

Hi,

if testgl is run using ‘testgl -twice -logo’ then, when the window is
opened the second time, the logo is displayed as a blue square instead
of the happy-face.

This happens on win32 and X and is because the OpenGL texture isn’t
recreated (or bound?) the second time.

The enclosed patch fixes the problem but the example code is creaking at
the seams a bit :slight_smile:

Woo, thanks. :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment