[cairo-commit] src/cairo-gl-shaders.c
Martin Robinson
mrobinson at kemper.freedesktop.org
Wed Mar 20 08:41:29 PDT 2013
src/cairo-gl-shaders.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ed6a293e3dd2e81c8e159bf685cce6ffbcd7c81c
Author: Henry Song <henry.song at samsung.com>
Date: Wed Mar 20 15:10:34 2013 +0000
gl: Fix typo in gles2 shader cache lookup
When comparing shader cache entries, it's important that we actually
compare the variable type hash.
diff --git a/src/cairo-gl-shaders.c b/src/cairo-gl-shaders.c
index 0bc4e5e..d8de712 100644
--- a/src/cairo-gl-shaders.c
+++ b/src/cairo-gl-shaders.c
@@ -105,7 +105,7 @@ _cairo_gl_shader_cache_equal_gles2 (const void *key_a, const void *key_b)
cairo_bool_t both_have_npot_repeat =
a->ctx->has_npot_repeat && b->ctx->has_npot_repeat;
- return (a->vertex && b->vertex &&
+ return (a->vertex == b->vertex &&
a->src == b->src &&
a->mask == b->mask &&
a->dest == b->dest &&
More information about the cairo-commit
mailing list