diff options
author | Joe Crayne <joe@jerkface.net> | 2019-05-19 05:11:16 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2019-05-19 05:11:16 -0400 |
commit | efed7ba3aec1f77d35e2b3725000640936478a77 (patch) | |
tree | 5d7768d3363a64a73f284b8a53b1ac1bb94b5975 /MaskableStream.hs | |
parent | ab43ecb77e381b83448a0ea324dd5377333538a0 (diff) |
Use per-primitive index head rather than per-component in PointPrimitiveRing.
Diffstat (limited to 'MaskableStream.hs')
-rw-r--r-- | MaskableStream.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MaskableStream.hs b/MaskableStream.hs index 5ef5b28..5274d28 100644 --- a/MaskableStream.hs +++ b/MaskableStream.hs | |||
@@ -265,12 +265,11 @@ updateAttributes i writer = forM_ (execWriter writer) $ \case | |||
265 | putStrLn $ "vector sz = " ++ show sz | 265 | putStrLn $ "vector sz = " ++ show sz |
266 | glBufferSubData GL_ARRAY_BUFFER (base + fromIntegral i * sz') sz' ptr | 266 | glBufferSubData GL_ARRAY_BUFFER (base + fromIntegral i * sz') sz' ptr |
267 | 267 | ||
268 | Just (MarshalGLMatrix with) -> with $ \sz isrowcol ptr -> do | 268 | Just (MarshalGLMatrix with) -> with $ \sz isrowcol ptr -> case isrowcol of |
269 | if isrowcol then | 269 | 0 -> do |
270 | hPutStrLn stderr $ "WARNING: (TODO) row-major matrix attribute update unimplemented." | ||
271 | else do | ||
272 | let sz' = fromIntegral $ attribSize * (fromIntegral sz) | 270 | let sz' = fromIntegral $ attribSize * (fromIntegral sz) |
273 | glBufferSubData GL_ARRAY_BUFFER (base + fromIntegral i * sz') sz' ptr | 271 | glBufferSubData GL_ARRAY_BUFFER (base + fromIntegral i * sz') sz' ptr |
272 | _ -> hPutStrLn stderr $ "WARNING: (TODO) row-major matrix attribute update unimplemented." | ||
274 | 273 | ||
275 | Nothing -> hPutStrLn stderr $ "Warning: dimension mismatch updating " ++ show (unwitnessType typ) ++ " attribute." | 274 | Nothing -> hPutStrLn stderr $ "Warning: dimension mismatch updating " ++ show (unwitnessType typ) ++ " attribute." |
276 | glBindBuffer GL_ARRAY_BUFFER 0 | 275 | glBindBuffer GL_ARRAY_BUFFER 0 |