[gtk+] gdk_gl_texture_from_surface: Enable scissor test
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk_gl_texture_from_surface: Enable scissor test
- Date: Thu, 6 Nov 2014 19:42:52 +0000 (UTC)
commit 61eabc4778971e17ef34cf5774762da11d0ff450
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 6 20:37:10 2014 +0100
gdk_gl_texture_from_surface: Enable scissor test
gdk/gdkgl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index b962508..17a3a89 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -692,6 +692,7 @@ gdk_gl_texture_from_surface (cairo_surface_t *surface,
glBindTexture (target, texture_id);
glEnable (target);
+ glEnable (GL_SCISSOR_TEST);
glTexParameteri (target, GL_TEXTURE_WRAP_S, 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);
}
+ glDisable (GL_SCISSOR_TEST);
glDisable (target);
glDeleteTextures (1, &texture_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]