lucas95123 / oglsuperbible5

Automatically exported from code.google.com/p/oglsuperbible5
0 stars 0 forks source link

Block_redux white window due to glFlush missing #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying the examples of the book (on my Windows 7 64bit Laptop with nVidia 
graphic) but block_redux does not work.
Even the svn version does not.

The window was just white:
SwapBuffers does not "paint" into the window.

Reading "http://www.opengl.org/pipeline/article/vol003_7/" I found that I need 
a "glFlush" before the SwapBuffers():

There I found this explanation:
Windowed applications that use frontbuffer rendering without ever calling 
glFlush or glFinish (as they should) are likely to appear completely black, 
because the rendering will sit forever in the offscreen frontbuffer. Not even 
switching the DWM off is likely to fix these, given that the offscreen 
frontbuffer is a requirement of the driver model itself.

Additional note:
Neither the zip file nor the SVN version did come so far. 
I had to replace the value "1" for 
WGL_ACCELERATION_ARB to WGL_FULL_ACCELERATION_ARB
with "1" I didn't get the pixel format error message.

Original issue reported on code.google.com by utes...@googlemail.com on 1 Feb 2011 at 10:36