mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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.
This commit is contained in:
parent
903a14ed91
commit
c7aa8da957
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue