gdk_gl_texture_from_surface: Enable scissor test
This commit is contained in:
parent
56631d02bd
commit
61eabc4778
@ -692,6 +692,7 @@ gdk_gl_texture_from_surface (cairo_surface_t *surface,
|
|||||||
|
|
||||||
glBindTexture (target, texture_id);
|
glBindTexture (target, texture_id);
|
||||||
glEnable (target);
|
glEnable (target);
|
||||||
|
glEnable (GL_SCISSOR_TEST);
|
||||||
|
|
||||||
glTexParameteri (target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
glTexParameteri (target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||||
glTexParameteri (target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
glTexParameteri (target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||||
@ -743,6 +744,7 @@ gdk_gl_texture_from_surface (cairo_surface_t *surface,
|
|||||||
umax, vmax);
|
umax, vmax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glDisable (GL_SCISSOR_TEST);
|
||||||
glDisable (target);
|
glDisable (target);
|
||||||
glDeleteTextures (1, &texture_id);
|
glDeleteTextures (1, &texture_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user