Make the matrix UBO use raw opengl
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user