diff options
author | Benjamin Otte <otte@redhat.com> | 2010-05-20 11:23:18 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-05-20 13:54:02 +0200 |
commit | 2a0f34c6da2eb4f10b198d04894fc1413352e041 (patch) | |
tree | fbc311538896c08447f9d44f5d876b6c8016477c /src/cairo-gl-shaders.c | |
parent | 1586f7740ad436447ac75c6b869da7446172a63c (diff) |
gl: Allow NONE and SPANS sampler for source, too
Diffstat (limited to 'src/cairo-gl-shaders.c')
-rw-r--r-- | src/cairo-gl-shaders.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-gl-shaders.c b/src/cairo-gl-shaders.c index d2c19737..c6ab07a6 100644 --- a/src/cairo-gl-shaders.c +++ b/src/cairo-gl-shaders.c @@ -991,7 +991,9 @@ _cairo_gl_set_shader_by_type (cairo_gl_context_t *ctx, _cairo_gl_set_shader (ctx, &entry->shader); - if (source != CAIRO_GL_OPERAND_CONSTANT) { + if (source != CAIRO_GL_OPERAND_CONSTANT && + source != CAIRO_GL_OPERAND_SPANS && + source != CAIRO_GL_OPERAND_NONE) { _cairo_gl_shader_bind_texture (ctx, "source_sampler", 0); } if (mask != CAIRO_GL_OPERAND_CONSTANT && |