Fix chasm draw bug
This commit is contained in:
+4
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user