提交 824ff961 编写于 作者: P Palana

Enable GL vertex attribute normalization

Fixes GL vertex color attributes
上级 5e2d283b
......@@ -221,7 +221,7 @@ static bool load_vb_buffer(struct shader_attrib *attrib,
if (!gl_bind_buffer(GL_ARRAY_BUFFER, buffer))
return false;
glVertexAttribPointer(attrib->attrib, width, type, GL_FALSE, 0, 0);
glVertexAttribPointer(attrib->attrib, width, type, GL_TRUE, 0, 0);
if (!gl_success("glVertexAttribPointer"))
success = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册