gl: Use GL_BACK_LEFT

The spec doesn't allow GL_BACK, but many drivers do. Use the
spec-accepted equivalent instead.

Fixed #4402
This commit is contained in:
Benjamin Otte 2021-11-03 19:49:08 +01:00
parent bca77b5505
commit 95574f98c4

View File

@ -4073,7 +4073,7 @@ get_framebuffer_format (guint framebuffer)
glBindFramebuffer (GL_FRAMEBUFFER, framebuffer);
glGetFramebufferAttachmentParameteriv (GL_FRAMEBUFFER,
framebuffer ? GL_COLOR_ATTACHMENT0
: GL_BACK,
: GL_BACK_LEFT,
GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, &size);
if (size > 16)