OpenGLRenderer: Don't call glDrawBuffer(GL_BACK) on OpenGL ES
even if glDrawBuffer exists
This commit is contained in:
parent
ccf77ac459
commit
6af0904849
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue