Fix call to non-existant glDrawBuffers on mobile WebGL 1 (#3068)

Co-authored-by: Issam <issam.dahmen@fittingbox.com>
This commit is contained in:
issam3105
2023-04-04 16:52:40 +02:00
committed by GitHub
parent 27a801ea8e
commit c3e3053935

View File

@@ -7073,7 +7073,7 @@ namespace bgfx { namespace gl
// GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER.
GL_CHECK(glDrawBuffer(GL_NONE) );
}
else if (g_caps.limits.maxFBAttachments > 0)
else if (g_caps.limits.maxFBAttachments > 1)
{
GL_CHECK(glDrawBuffers(colorIdx, buffers) );
}