提交 ebc78eee 编写于 作者: P Palana

do not unbind vertex array (GL 3+)

上级 5f011290
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册