gl: Fix typo in gles2 shader cache lookup

When comparing shader cache entries, it's important that we actually
compare the variable type hash.
This commit is contained in:
Henry Song 2013-03-20 15:10:34 +00:00 committed by Martin Robinson
parent ff233fd706
commit ed6a293e3d

View file

@ -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 &&