diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-19 23:07:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-19 23:07:12 +0100 |
commit | 08c9a8ea438f25ae8012d80d2c2c74c799f5543c (patch) | |
tree | f762bb030223c923c4ce6c861611cda1f50a8fef /gfx/gl/shadowStenciller.cpp | |
parent | Update asset stencils from shadow mapper (diff) | |
download | ilt-08c9a8ea438f25ae8012d80d2c2c74c799f5543c.tar.bz2 ilt-08c9a8ea438f25ae8012d80d2c2c74c799f5543c.tar.xz ilt-08c9a8ea438f25ae8012d80d2c2c74c799f5543c.zip |
Shuffle some GL state setting
Ensures the right things are set at the right times, it's more calls but its less prone
to randomly getting screwed over. Also updates the comments about which phases do what.
Diffstat (limited to 'gfx/gl/shadowStenciller.cpp')
-rw-r--r-- | gfx/gl/shadowStenciller.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gfx/gl/shadowStenciller.cpp b/gfx/gl/shadowStenciller.cpp index 9f13808..fc3d77c 100644 --- a/gfx/gl/shadowStenciller.cpp +++ b/gfx/gl/shadowStenciller.cpp @@ -45,7 +45,6 @@ ShadowStenciller::renderStencil(const glTexture & stencil, const MeshBase & mesh glUseProgram(shadowCaster); glClear(GL_DEPTH_BUFFER_BIT); glViewport(0, 0, 256, 256); - glEnable(GL_DEPTH_TEST); const auto & centre = mesh.getDimensions().centre; const auto & size = mesh.getDimensions().size; const auto extentsMat |