summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-10-23 10:05:14 -0600
committerBrian Paul <[email protected]>2011-10-23 10:09:34 -0600
commitc7aa8da9573f6d505bec894b4738f0521511b9f0 (patch)
tree9351c2af2bfeeba4e2bf50d57a0133f1ac2d297f /src/gallium
parent903a14ed9146f3a38895ca7e39f69f2ad77bf5df (diff)
llvmpipe: compare front_facing to NULL to improve readability
Compare 'front_facing' to NULL to make it more obvious that front_facing is a pointer and not a simple boolean value.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_depth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_depth.c b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
index 5e0eb99c937..3e75e91fc09 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_depth.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
@@ -141,7 +141,7 @@ lp_build_stencil_test(struct lp_build_context *bld,
res = lp_build_stencil_test_single(bld, &stencil[0],
stencilRefs[0], stencilVals);
- if (stencil[1].enabled && front_facing) {
+ if (stencil[1].enabled && front_facing != NULL) {
/* do back face test */
LLVMValueRef back_res;
@@ -253,7 +253,7 @@ lp_build_stencil_op(struct lp_build_context *bld,
res = lp_build_stencil_op_single(bld, &stencil[0], op,
stencilRefs[0], stencilVals);
- if (stencil[1].enabled && front_facing) {
+ if (stencil[1].enabled && front_facing != NULL) {
/* do back face op */
LLVMValueRef back_res;