[SDL] SDL 1.3 and OpenGL = Random garbage

VernJensen vern at actionsoft.com
Wed Nov 2 16:47:59 PDT 2011


First, many thanks to those who have helped me on here the past couple of days. Your help has been invaluable!

My issue is this: while the "gltest" that comes with SDL 1.3 runs just fine, my own program does not -- it creates a window with garbage that does not update, even though I can verify in the debugger that the various gl functions are indeed being called. I decided then to try out this basic OpenGL test, posted on opengl.org:

http://www.opengl.org/wiki/Tutorial1:_Creating_a_Cross_Platform_OpenGL_3.2_Context_in_SDL_%28C_/_SDL%29

Turns out it has the same problem! I get a window with random garbage that doesn't update/animate. (It should display red, wait 2 seconds, blue, wait 2 seconds, green, wait 2 and quit.) Instead I get random garbage, and then it quits after 6 seconds.

This is what happens even when pasting the code above directly into the "gltest.c" source file, compiling normally. (In other words, all project settings, including things being linked against, are exactly the same as for the normal SDL testgl program.)

Even this simple test above worked fine when I ran it on a Mac some months ago. Any help with what I'm not understanding about Windows that's causing this to fail? Thanks again so much...

Fortunately this one should be easy to duplicate if you want to see if yourselves.

-Vern




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20111102/e375205b/attachment.htm>


More information about the SDL mailing list