kimziv / oglsuperbible5

GLTools and OpenGL SuperBible (5th Edition) OpenGL超级宝典第五版
41 stars 16 forks source link

Chapter 9: Multisample HDR one-line fix #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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: