summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-05-19 20:49:49 +0200
committerBenjamin Otte <otte@redhat.com>2010-05-20 11:02:49 +0200
commit0d5f2eab77f055b063538dcd345a1e0db480f3bc (patch)
tree5e168e0206b40e2737de2c0ac4bf156cc9cbe609
parentbb7ca71c1af416ca084f03089f5fe762403635dd (diff)
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...
-rw-r--r--src/cairo-gl-composite.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c
index 12c6225c..adb63bb6 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;