summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Song <henry.song@samsung.com>2013-03-20 15:10:34 +0000
committerMartin Robinson <mrobinson@igalia.com>2013-03-20 08:40:58 -0700
commited6a293e3dd2e81c8e159bf685cce6ffbcd7c81c (patch)
treef7140ac6f5edb5eb57c5d98e4a91e006f5357672
parentff233fd706e62edf267bee66113e2cb35183bcd9 (diff)
gl: Fix typo in gles2 shader cache lookup
When comparing shader cache entries, it's important that we actually compare the variable type hash.
-rw-r--r--src/cairo-gl-shaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gl-shaders.c b/src/cairo-gl-shaders.c
index 0bc4e5e1..d8de7125 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 &&