Fix picture vertex buffering bug

This commit is contained in:
2026-01-02 10:58:28 +00:00
parent 2c978b4de1
commit 119234af89
6 changed files with 67 additions and 62 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ bufferShaderLayers counts = MV.imapM_ f
VFSM.mapM_ (g stride theVBO) $ VFSM.enumFromStepN 0 1 numLayers -- [0..5]
where
g stride theVBO lay = do
numVs <- UMV.unsafeRead counts $ lay * numLayers + i
numVs <- UMV.unsafeRead counts $ lay * numShads + i
glNamedBufferSubData
(_vboName theVBO)
(fromIntegral $ floatSize * stride * numSubElements * lay)