Use glTexStorage when resizing framebuffers

This commit is contained in:
2021-07-18 20:36:20 +02:00
parent ac66b4b9d6
commit 9407c7af2a
5 changed files with 51 additions and 42 deletions
-2
View File
@@ -58,8 +58,6 @@ createLightMap pdata lightPoints nWalls nSils nsurfVs = do
depthFunc $= Just Lequal
forM_ lightPoints $ \((x,y,z),r,lum) -> do
-- stencil out shadows
--depthFunc $= Just Less
--depthFunc $= Just Lequal
colorMask $= Color4 Disabled Disabled Disabled Disabled
clear [StencilBuffer]
cullFace $= Just Back