Compare 'front_facing' to NULL to make it more obvious that front_facing
is a pointer and not a simple boolean value.
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;
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;