forked from AuroraMiddleware/gtk
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:
parent
bca77b5505
commit
95574f98c4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user