Commit 33e4826e authored by Emmanuele Bassi's avatar Emmanuele Bassi

gl: Check for GL_EXT_framebuffer_blit before using glBlitFramebuffer

We check when we realize the GdkGLContext, but we never use the check
before using the API, and it breaks on drivers that do not implement the
extension, or on drivers that only support OpenGL ES 2.0.
parent e04654f8
......@@ -409,6 +409,7 @@ gdk_cairo_draw_from_gl (cairo_t *cr,
alpha_size == 0 &&
direct_window != NULL &&
direct_window->current_paint.use_gl &&
gdk_gl_context_has_framebuffer_blit (paint_context) &&
trivial_transform &&
clip_region != NULL)
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