[cogl] cogl-pipeline-fragend-arbfp: Fix the comparison for dot3 arguments
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] cogl-pipeline-fragend-arbfp: Fix the comparison for dot3 arguments
- Date: Wed, 11 May 2011 13:33:31 +0000 (UTC)
commit a075f4498b3c49d7a349bec09758af2c2be67aaf
Author: Neil Roberts <neil linux intel com>
Date: Wed May 11 13:50:32 2011 +0100
cogl-pipeline-fragend-arbfp: Fix the comparison for dot3 arguments
There was a typo in fragend_arbfp_args_equal so that it wasn't
comparing the constants correctly.
Thomas Wood found this bug with static analysis.
cogl/cogl-pipeline-fragend-arbfp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-pipeline-fragend-arbfp.c b/cogl/cogl-pipeline-fragend-arbfp.c
index 4e14ba1..18f8553 100644
--- a/cogl/cogl-pipeline-fragend-arbfp.c
+++ b/cogl/cogl-pipeline-fragend-arbfp.c
@@ -558,7 +558,7 @@ fragend_arbfp_args_equal (CoglPipelineFragendARBfpArg *arg0,
* have one target enabled at a time. */
if (arg0->type == COGL_PIPELINE_FRAGEND_ARBFP_ARG_TYPE_CONSTANT &&
- arg0->constant_id != arg0->constant_id)
+ arg0->constant_id != arg1->constant_id)
return FALSE;
if (arg0->swizzle != arg1->swizzle &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]