summaryrefslogtreecommitdiff
path: root/gdk/gdkgl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-11-17 22:03:04 +0100
committerBenjamin Otte <otte@redhat.com>2016-11-17 22:11:33 +0100
commitc162b87ebd50e82907006c13ae64d7c7828d0fa4 (patch)
tree99b0677bc380b9f23eac0fbfdf4cac3f7e4b16bb /gdk/gdkgl.c
parent214eb5860db6fb95bb806a46350cb7dbca93c81f (diff)
downloadgtk+-c162b87ebd50e82907006c13ae64d7c7828d0fa4.tar.gz
gdk: Fix a variable
The passed in surface is the current_paint surface, so I guess this usage hasn't been noticed.
Diffstat (limited to 'gdk/gdkgl.c')
-rw-r--r--gdk/gdkgl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index 2005cec6b1..b62fc2d87a 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -741,10 +741,8 @@ gdk_gl_texture_from_surface (cairo_surface_t *surface,
gdk_window_get_unscaled_size (window, NULL, &unscaled_window_height);
sx = sy = 1;
- cairo_surface_get_device_scale (window->current_paint.surface, &sx, &sy);
-
- cairo_surface_get_device_offset (surface,
- &device_x_offset, &device_y_offset);
+ cairo_surface_get_device_scale (surface, &sx, &sy);
+ cairo_surface_get_device_offset (surface, &device_x_offset, &device_y_offset);
glGenTextures (1, &texture_id);
if (use_texture_rectangle)