We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4df21fc commit e01f946Copy full SHA for e01f946
src/glinject.c
@@ -789,6 +789,10 @@ static void gl_copy_backbuffer(GLuint dst)
789
790
static void gl_shtex_capture()
791
{
792
+ bool scissorEnabled = gl_f.IsEnabled(GL_SCISSOR_TEST);
793
+ if (scissorEnabled) {
794
+ gl_f.Disable(GL_SCISSOR_TEST);
795
+ }
796
GLboolean last_srgb;
797
GLint last_read_fbo;
798
GLint last_draw_fbo;
@@ -809,6 +813,9 @@ static void gl_shtex_capture()
809
813
} else {
810
814
gl_f.Disable(GL_FRAMEBUFFER_SRGB);
811
815
}
816
817
+ gl_f.Enable(GL_SCISSOR_TEST);
818
812
819
820
821
static bool gl_shtex_init()
0 commit comments