OpenGLRenderer: Don't call glDrawBuffer(GL_BACK) on OpenGL ES
even if glDrawBuffer exists
This commit is contained in:
@@ -240,7 +240,7 @@ namespace Nz
|
||||
assert(command.framebuffer->GetType() == FramebufferType::Window);
|
||||
|
||||
// glDrawBuffers doesn't accept GL_BACK on OpenGL non-ES, and glDrawBuffer must be used instead
|
||||
if (context->glDrawBuffer)
|
||||
if (context->GetParams().type != GL::ContextType::OpenGL_ES && context->glDrawBuffer)
|
||||
context->glDrawBuffer(GL_BACK);
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user