Przeglądaj źródła

Enable GL vertex attribute normalization

Fixes GL vertex color attributes
Palana 11 lat temu
rodzic
commit
824ff961d0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      libobs-opengl/gl-vertexbuffer.c

+ 1 - 1
libobs-opengl/gl-vertexbuffer.c

@@ -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;