Commit before connecting each vao to unique vbos

This commit is contained in:
2021-03-02 00:54:00 +01:00
parent 1e198b551e
commit 18492f00d2
8 changed files with 34 additions and 62 deletions
+4 -4
View File
@@ -116,10 +116,10 @@ preloadRender = do
--the following vbo is set up to contain one fixed vertex
dummyvbo <- genObjectName
dummyptr <- malloc
poke dummyptr 0
bindBuffer ArrayBuffer$= Just dummyvbo
bufferData ArrayBuffer$= (fromIntegral floatSize, dummyptr, StaticDraw)
dummyptr <- mallocArray numDrawableElements
pokeArray dummyptr [0..2000]
bindBuffer ArrayBuffer $= Just dummyvbo
bufferData ArrayBuffer $= (fromIntegral floatSize, dummyptr, StaticDraw)
-- load charmap as texture
-- Right cmap <- readImage "data/texture/smudgedDirt.png"