diff options
author | Henry Song <henry.song@samsung.com> | 2013-03-20 15:10:34 +0000 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2013-03-20 08:40:58 -0700 |
commit | ed6a293e3dd2e81c8e159bf685cce6ffbcd7c81c (patch) | |
tree | f7140ac6f5edb5eb57c5d98e4a91e006f5357672 | |
parent | ff233fd706e62edf267bee66113e2cb35183bcd9 (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.c | 2 |
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 && |