Fix chasm draw bug

This commit is contained in:
2025-11-21 17:31:21 +00:00
parent 94dce64f29
commit 3e86b6e20a
+4 -1
View File
@@ -140,8 +140,11 @@ doDrawing' win pdata u = do
glDepthMask GL_FALSE
glStencilOp GL_KEEP GL_KEEP GL_INCR
with 0 $ glClearNamedFramebufferiv (pdata ^. fboBase . _1 . unFBO) GL_STENCIL 0
-- probably don't want to set the drawbuffer to GL_NONE, but not sure
-- need to set the drawbuffer to none
glDrawBuffer GL_NONE
glDrawArrays GL_TRIANGLES 0 (fromIntegral nchs)
withArray [GL_COLOR_ATTACHMENT0,GL_COLOR_ATTACHMENT1,GL_COLOR_ATTACHMENT2] $
glNamedFramebufferDrawBuffers (pdata ^. fboBase . _1 . unFBO) 3
glDepthMask GL_TRUE
--draw floor onto base buffer
glUseProgram (pdata ^. floorShader)