summaryrefslogtreecommitdiff
path: root/src/cairo-gl-shaders.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-02-03 17:06:45 -0800
committerEric Anholt <eric@anholt.net>2010-02-04 07:05:41 -0800
commit88c8304e9072e5a46890a0eb32fcdbc857eb1a12 (patch)
tree19fd9acfd6a2c7cfc15ede37085b333345422742 /src/cairo-gl-shaders.c
parent42597170f2303475bb0507f4c6e948eead28c7bd (diff)
[gl] Sanity check the sampler uniform binding.
Diffstat (limited to 'src/cairo-gl-shaders.c')
-rw-r--r--src/cairo-gl-shaders.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-gl-shaders.c b/src/cairo-gl-shaders.c
index 9d4d2038..b98d10e4 100644
--- a/src/cairo-gl-shaders.c
+++ b/src/cairo-gl-shaders.c
@@ -874,12 +874,14 @@ _cairo_gl_get_program (cairo_gl_context_t *ctx,
_cairo_gl_use_program (program);
if (source != CAIRO_GL_SHADER_SOURCE_CONSTANT) {
- bind_texture_to_shader (program->program, "source_sampler", 0);
+ status = bind_texture_to_shader (program->program, "source_sampler", 0);
+ assert (!_cairo_status_is_error (status));
}
if (mask != CAIRO_GL_SHADER_MASK_CONSTANT &&
mask != CAIRO_GL_SHADER_MASK_SPANS &&
mask != CAIRO_GL_SHADER_MASK_NONE) {
- bind_texture_to_shader (program->program, "mask_sampler", 1);
+ status = bind_texture_to_shader (program->program, "mask_sampler", 1);
+ assert (!_cairo_status_is_error (status));
}
_cairo_gl_use_program (NULL);