Make the matrix UBO use raw opengl

This commit is contained in:
2023-03-09 14:28:23 +00:00
parent 6a68873653
commit 0b698e5f5d
3 changed files with 10 additions and 16 deletions
+2 -1
View File
@@ -178,7 +178,8 @@ setupVertexAttribPointer ::
Int ->
IO ()
setupVertexAttribPointer vao vbo loc siz strd off = do
glVertexArrayVertexBuffer vao 0 vbo 0 (fromIntegral $ floatSize * strd)
glVertexArrayVertexBuffer vao 0 vbo 0 (fromIntegral $ floatSize * strd)
-- the above is probably duplicated: needs moving out of this function
glEnableVertexArrayAttrib vao loc'
glVertexArrayAttribFormat vao loc' siz' GL_FLOAT GL_FALSE (fromIntegral $ floatSize * off)
glVertexArrayAttribBinding vao loc' 0