Cleanup window buffers

This commit is contained in:
2025-11-11 18:08:55 +00:00
parent ceba6fd533
commit f136d0cd19
4 changed files with 26 additions and 38 deletions
+6 -6
View File
@@ -26,12 +26,12 @@ bufferPokedVBO theVBO numVs =
(_vboPtr theVBO)
bufferEBO :: UintBO -> Int -> IO ()
bufferEBO ebo numis =
glNamedBufferSubData
(ebo ^. uiboName)
0
(fromIntegral $ gluintSize * numis)
(ebo ^. uiboPtr)
bufferEBO x i =
glNamedBufferSubData (x ^. uiboName) 0 (fromIntegral $ gluintSize * i) (x ^. uiboPtr)
--bufferFloatBO :: VBO -> Int -> IO ()
--bufferFloatBO x i = undefined
-- glNamedBufferSubData (x ^. uiboName) 0 (fromIntegral $ gluintSize * i) (x ^. uiboPtr)
bufferShaderLayers :: MV.MVector (PrimState IO) (Shader, VBO) -> UMV.MVector (PrimState IO) Int -> IO ()
bufferShaderLayers shads counts = MV.imapM_ f shads