rswinkle / oglsuperbible5

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

Most of the samples using opengl3.3 (chap 11 onwards) dont work #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Most of the examples from chapter 11 onwards which use opengl3.3 dont work. The 
reason is the glew library does not expose the func. pointers. 
This also is the reason for segmentation faults for perspective program in 
chapter 11
Resolution: use glewExperimental=GL_TRUE; before glewInit(); for glew v 1.5.5  
I m not sure whether the current glew version has changed this but it works for 
glew v 1.5.5.

The fbo examples from chapter 8 dont check for framebuffer completeness which 
is strange. Chapter 9 hdr_msaa example does not work because the fbo si 
attached to GL_TEXTURE_2D texture (in line 291 hdr_msaa.cpp) when it should use 
GL_TEXTURE_2D_MULTISAMPLE as follows 
glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, 
GL_TEXTURE_2D_MULTISAMPLE, hdrTextures[0], 0);

More errors and their reolution are pointed out here 
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=28488
5#Post284885
I have successfully build and run all the samples from the book svn release. 

Original issue reported on code.google.com by mmmova...@gmail.com on 7 Jan 2011 at 11:49