mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fix call to non-existant glDrawBuffers on mobile WebGL 1 (#3068)
Co-authored-by: Issam <issam.dahmen@fittingbox.com>
This commit is contained in:
@@ -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) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user