Browse Source

do not unbind vertex array (GL 3+)

Palana 12 years ago
parent
commit
ebc78eee9d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      libobs-opengl/gl-vertexbuffer.c

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

@@ -247,10 +247,8 @@ bool vertexbuffer_load(device_t device, vertbuffer_t vb)
 		return true;
 
 	device->cur_vertex_buffer = vb;
-	if (!device->cur_vertex_shader || !vb) {
-		gl_bind_vertex_array(0);
+	if (!device->cur_vertex_shader || !vb)
 		return true;
-	}
 
 	if (!load_vb_buffers(device->cur_vertex_shader, vb))
 		return false;