浏览代码

Enable GL vertex attribute normalization

Fixes GL vertex color attributes
Palana 11 年之前
父节点
当前提交
824ff961d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;