Skip to content

Commit 2557c53

Browse files
committed
stencil: mark the TEV as dirty after drawing to the stencil buffer
Fixes a regression introduced by commit 836fd7e, because indeed the _ogx_stencil_draw() function (and draw_op() in particular) alters the TEV setup, which then needs to be restored when drawing to the scene. This fixes an issue in the dinoshade program, where some parts of the reflected dinosaur could be seen outside of the floor.
1 parent 8bb693d commit 2557c53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/stencil.c

+2
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ void _ogx_stencil_draw(OgxStencilDrawCallback callback, void *cb_data)
540540
check_stencil, invert_stencil, check_z, invert_z,
541541
callback, cb_data);
542542
}
543+
544+
glparamstate.dirty.bits.dirty_tev = 1;
543545
}
544546

545547
void _ogx_stencil_enabled()

0 commit comments

Comments
 (0)