Fix picture vertex buffering bug
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user