   Dislpay is all black when compiled in release.
  What im programming looks fine when i compile it for debug. But if i try just the same setting it to release mode, the window opens, but shows nothing :|.Im using OpenGL over SDL in a Win32 system and using Visual Studio Express 2005.Any ideas? This seems just Voodoo :(Thanks for your time.   
  Your best best is to add logging for every single solitary line during the creation routine, etc. and log return values, etc. to decipher what's going on.  I had a similar issue once with DX where everything worked fine in Debug, but once I moved to Release I got random crashes and blank screens due to updating a render state in the wrong location.Debug builds are always far more forgiving than release since there may be some inherent handling of invalid states in this mode whereas it is lost once your release build is compiled.  Perhaps check the location of any required DLLs since I've noticed .net sets working directories different for debug vs release builds (I move all my code to a "bin" folder after compile but it still runs as though it's in "source").  Just some ideas.   ;  It probably has something to do with uninitialized variables. In debug mode, all variables are usually initialized to some value (like 0 but not necessarily), but in release mode they just contain garbage.   ;  Yeah, it's hard to know what your problem might be without some more info, but it may have something to do with the directory.  If you're using a relative file path for loading your resources, then perhaps your program can't find those files from the release folder.   ;  Thanks for your replyes. I still can't fix it.The compiler does not report any uninitialized variables being used (full build).May OpenGL's default state change when compiled for debug or for release?I know it is not a (file not found) issue, as not even the GL_LINES get drawn.But if i change the clearcolor to white, then the screen turns white, so i was thinking it could be something related to the viewport, or the projection matrix, or something related.Any more ideas? Any more info i could provide you with so you can understand the problem better?Thanks a lot for your time :)   ;  i suck.thank you all :).It really was an uninitialized variable. It was the "bool mbVisibile" variable in every drawable entity :PFirst i got angry the compiler didn't warn me about it. And the only way to debug it in release mode was printing to the console.I guess its too complicated to a compiler to warn about something like that.Thanks for your time. I was very frustrated :).   