forked from AuroraMiddleware/gtk
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:
parent
b366ea84a7
commit
31fcf5b3a7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user