OpenGLRenderer: Don't call glDrawBuffer(GL_BACK) on OpenGL ES

even if glDrawBuffer exists
This commit is contained in:
SirLynix 2022-12-06 07:50:26 +01:00
parent ccf77ac459
commit 6af0904849
1 changed files with 1 additions and 1 deletions

View File

@ -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
{