gsk: Handle GL textures

These textures already have a GL texture in them,
no need to create a new one.
This commit is contained in:
Matthias Clasen 2018-01-17 00:52:15 -05:00
parent b366ea84a7
commit 31fcf5b3a7

View File

@ -370,6 +370,9 @@ gsk_gl_driver_get_texture_for_texture (GskGLDriver *driver,
Texture *t;
cairo_surface_t *surface;
if (GDK_IS_GL_TEXTURE (texture))
return gdk_gl_texture_get_id (GDK_GL_TEXTURE (texture));
t = gdk_texture_get_render_data (texture, driver);
if (t)