summaryrefslogtreecommitdiff
path: root/gtk/gtkglarea.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-18 05:14:52 +0100
committerBenjamin Otte <otte@redhat.com>2018-03-18 05:57:07 +0100
commit82a99a3643f49632e9c633c294ab47044daab3c5 (patch)
tree78b92f398ac18ccfa37062d4de0b9ba05cdd1cbd /gtk/gtkglarea.c
parentd54ca3c74f360c36810ec21ecac5d7f5065bba9f (diff)
downloadgtk+-82a99a3643f49632e9c633c294ab47044daab3c5.tar.gz
texture: Expose subclasses as subclasses
This is necessary so that bidnings work properly and don't make gdk_gl_texture_release() a function on GdkTexture. It also allows code to identify what type of texture they are dealing with. Finally, we can now decide to add getters later without screwing anything up, if we want to allow people to access GL textures directly.
Diffstat (limited to 'gtk/gtkglarea.c')
-rw-r--r--gtk/gtkglarea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index e44c68ef66..85b3cb9906 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -386,7 +386,7 @@ delete_one_texture (gpointer data)
Texture *texture = data;
if (texture->holder)
- gdk_gl_texture_release (texture->holder);
+ gdk_gl_texture_release (GDK_GL_TEXTURE (texture->holder));
if (texture->id != 0)
{