[SDL] SDL 1.3 and OpenGL = Random garbage
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:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL