diff options
Diffstat (limited to 'Spear/GL.hs')
-rw-r--r-- | Spear/GL.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Spear/GL.hs b/Spear/GL.hs index 6792d35..af96da4 100644 --- a/Spear/GL.hs +++ b/Spear/GL.hs | |||
@@ -452,7 +452,8 @@ attribVAOPointer | |||
452 | -> Int -- ^ Offset to the first component in the array. | 452 | -> Int -- ^ Offset to the first component in the array. |
453 | -> IO () | 453 | -> IO () |
454 | attribVAOPointer idx ncomp dattype normalise stride off = | 454 | attribVAOPointer idx ncomp dattype normalise stride off = |
455 | glVertexAttribPointer idx ncomp dattype (unsafeCoerce normalise) stride (unsafeCoerce off) | 455 | glVertexAttribPointer idx ncomp dattype normalise' stride (unsafeCoerce off) |
456 | where normalise' = if normalise then 1 else 0 | ||
456 | 457 | ||
457 | -- | Draw the bound vao. | 458 | -- | Draw the bound vao. |
458 | drawArrays | 459 | drawArrays |