Fix resetting of immutable chasm/floor data storage on new world load
This commit is contained in:
+1
-1
@@ -44,7 +44,6 @@ doTestDrawing _ _ = do
|
||||
doDrawing' :: SDL.Window -> RenderData -> Universe -> IO ()
|
||||
doDrawing' win pdata u = do
|
||||
--sTicks <- SDL.ticks
|
||||
checkGLError "during drawing"
|
||||
let w = _uvWorld u
|
||||
cfig = _uvConfig u
|
||||
(windowPoints, wallSPics, wallsToPoke) = wallsToDraw w
|
||||
@@ -383,6 +382,7 @@ doDrawing' win pdata u = do
|
||||
glDepthMask GL_TRUE
|
||||
with (-1) $ glClearNamedFramebufferfv 0 GL_DEPTH 0
|
||||
renderLayer FixedCoordLayer shadV pokeCounts
|
||||
checkGLError "during doDrawing'"
|
||||
SDL.glSwapWindow win
|
||||
|
||||
rdToVec2s :: Distortion -> [Point2]
|
||||
|
||||
Reference in New Issue
Block a user