mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
Enable GL vertex attribute normalization
Fixes GL vertex color attributes
This commit is contained in:
parent
5e2d283b9c
commit
824ff961d0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user