mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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.
This commit is contained in:
parent
cdfad9cdbe
commit
a075f4498b
@ -558,7 +558,7 @@ fragend_arbfp_args_equal (CoglPipelineFragendARBfpArg *arg0,
|
|||||||
* have one target enabled at a time. */
|
* have one target enabled at a time. */
|
||||||
|
|
||||||
if (arg0->type == COGL_PIPELINE_FRAGEND_ARBFP_ARG_TYPE_CONSTANT &&
|
if (arg0->type == COGL_PIPELINE_FRAGEND_ARBFP_ARG_TYPE_CONSTANT &&
|
||||||
arg0->constant_id != arg0->constant_id)
|
arg0->constant_id != arg1->constant_id)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (arg0->swizzle != arg1->swizzle &&
|
if (arg0->swizzle != arg1->swizzle &&
|
||||||
|
Loading…
Reference in New Issue
Block a user