From 0d5f2eab77f055b063538dcd345a1e0db480f3bc Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 19 May 2010 20:49:49 +0200 Subject: [PATCH] gl: Actuall do fall back to fixed function paths. Previously we were just returning UNSUPPORTED all the time. I guess that explains why my code got so slow... --- src/cairo-gl-composite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c index 12c6225c2..adb63bb65 100644 --- a/src/cairo-gl-composite.c +++ b/src/cairo-gl-composite.c @@ -1086,7 +1086,9 @@ _cairo_gl_composite_begin (cairo_gl_context_t *ctx, : CAIRO_GL_SHADER_IN_NORMAL); if (unlikely (status)) { setup->pre_shader = NULL; - return status; + if (_cairo_status_is_error (status)) + return status; + /* fall back to fixed function here */ } status = CAIRO_STATUS_SUCCESS;