Commit 6a69dc6e authored by Timm Bäder's avatar Timm Bäder 🤔
Browse files

gl renderer: A GdkGLTexture's context might be NULL

gdk_gl_texture_download ought to still work, but we can't make a NULL
context current obviously.
parent 5aa53167
......@@ -511,8 +511,11 @@ gsk_gl_driver_get_texture_for_texture (GskGLDriver *self,
{
/* In this case, we have to temporarily make the texture's context the current one,
* download its data into our context and then create a texture from it. */
gdk_gl_context_make_current (texture_context);
if (texture_context)
gdk_gl_context_make_current (texture_context);
surface = gdk_texture_download_surface (texture);
gdk_gl_context_make_current (self->gl_context);
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment