From 9fb0cbd45db40b34669fc7397b69c731019b70ac Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 7 Dec 2012 09:43:49 -0500 Subject: [PATCH] meta-texture: Fix nonsensical <= on pointers Comparing the pointed-to value is clearly what was meant. Found by Coverity. Signed-off-by: Adam Jackson Reviewed-by: Robert Bragg (cherry picked from commit f676352210fad856ae85962733e488bc1a832411) --- cogl/cogl-meta-texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl-meta-texture.c b/cogl/cogl-meta-texture.c index 4f51f7ced..0770db22d 100644 --- a/cogl/cogl-meta-texture.c +++ b/cogl/cogl-meta-texture.c @@ -337,7 +337,7 @@ foreach_clamped_region (CoglMetaTexture *meta_texture, clamp_s_cb, &clamp_data); /* Have we handled everything? */ - if (tx_2 <= 0) + if (*tx_2 <= 0) return TRUE; /* clamp tx_1 since we've handled everything with x < 0 */ @@ -396,7 +396,7 @@ foreach_clamped_region (CoglMetaTexture *meta_texture, clamp_t_cb, &clamp_data); /* Have we handled everything? */ - if (tx_2 <= 0) + if (*tx_2 <= 0) return TRUE; /* clamp ty_1 since we've handled everything with y < 0 */