xtl-murphy / oglsuperbible5

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

Chapter 9: Multisample HDR one-line fix #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Texture target of glFramebufferTexture2D is currently GL_TEXTURE_2D. On my 
system, this will cause

glGetIntegerv(GL_SAMPLES, &sampleCount); 

to return 0 instead of 8.

Using GL_TEXTURE_2D_MULTISAMPLE as the texture target for 
glFramebufferTexture2D appears to be the solution. 
I'm not 100% sure as the reference pages don't discuss this issue at all, but 
at least it works for me.

Original issue reported on code.google.com by elvezz...@gmail.com on 20 Mar 2011 at 9:27

Attachments: