Map an "isometric" matrix to a static buffer

This commit is contained in:
2023-03-09 23:29:58 +00:00
parent d72033c562
commit b1750ad028
6 changed files with 14 additions and 13 deletions
-1
View File
@@ -143,7 +143,6 @@ setupVBOSized ndraw vao sizes = do
--vboName <- genObjectName
--bindBuffer ArrayBuffer $= Just vboName
vboname <- mglCreate glCreateBuffers
glBindBuffer GL_ARRAY_BUFFER vboname
forM_ (zip3 [0 ..] sizes offs) $ \(loc, siz, off) -> do
setupVertexAttribPointer vao vboname loc siz strd off
thePtr <- mallocArray (strd * ndraw)