Cleanup, improve auto wall rotate
This commit is contained in:
@@ -30,7 +30,7 @@ postWorldLoad rdata cw = do
|
||||
glNamedBufferStorage newfloorbo (fromIntegral $ 8 * nfloorvxs * floatSize) floorptr 0
|
||||
nchasmvxs <- foldM (pokeChasm chptr) 0 (cw ^. uvWorld . cWorld . chasms)
|
||||
glBindBufferBase GL_SHADER_STORAGE_BUFFER 7 newchbo
|
||||
glNamedBufferStorage newchbo (fromIntegral $ 2 * (max 1 nchasmvxs) * floatSize) chptr 0
|
||||
glNamedBufferStorage newchbo (fromIntegral $ 2 * max 1 nchasmvxs * floatSize) chptr 0
|
||||
-- note the max 1, prevents trying to create empty buffer storage
|
||||
checkGLError "during postWorldLoad"
|
||||
return $
|
||||
|
||||
Reference in New Issue
Block a user