meta-texture: Fix nonsensical <= on pointers

Comparing the pointed-to value is clearly what was meant.

Found by Coverity.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit f676352210fad856ae85962733e488bc1a832411)
This commit is contained in:
Adam Jackson 2012-12-07 09:43:49 -05:00 committed by Robert Bragg
parent 78bea226d4
commit 9fb0cbd45d

View File

@ -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 */