only apply the Intel glDrawBuffers fix on Linux (not Win/Mac)
This commit is contained in:
@@ -12,6 +12,7 @@ bool gIntelLinuxglDrawBufferWorkaround=false;
|
|||||||
GLRenderToTexture::GLRenderToTexture()
|
GLRenderToTexture::GLRenderToTexture()
|
||||||
:m_framebufferName(0)
|
:m_framebufferName(0)
|
||||||
{
|
{
|
||||||
|
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||||
const GLubyte* ven = glGetString(GL_VENDOR);
|
const GLubyte* ven = glGetString(GL_VENDOR);
|
||||||
printf("ven = %s\n",ven);
|
printf("ven = %s\n",ven);
|
||||||
|
|
||||||
@@ -20,6 +21,7 @@ GLRenderToTexture::GLRenderToTexture()
|
|||||||
printf("Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu\n");
|
printf("Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu\n");
|
||||||
gIntelLinuxglDrawBufferWorkaround=true;
|
gIntelLinuxglDrawBufferWorkaround=true;
|
||||||
}
|
}
|
||||||
|
#endif//!defined(_WIN32) && !defined(__APPLE__)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user