When doing a blit in blit_int we use the same context that we use for drawing. Now with qemu or crostini blits may be issued that are not issued by the guest program so that it expects a GL_FRAMEBUFFER_SRGB state that might actually have been clobbered. Keep track of how GL_FRAMEBUFFER_SRGB is set when the framebuffer state is issued, and restore its value after doing a blit via glBlitFramebuffer. Thanks to Lepton Wu for tracking this down. Fixes #126 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Lepton Wu <lepton@chromium.org>macos/master
parent
9cc29b194a
commit
e66a1d97cb
Loading…
Reference in new issue