Map an "isometric" matrix to a static buffer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user