提交 10e917ef 编写于 作者: J jp9000

unbind VAO if NULL buffer specified

上级 41bef329
......@@ -260,8 +260,10 @@ bool vertexbuffer_load(device_t device, vertbuffer_t vb)
return true;
device->cur_vertex_buffer = vb;
if (!device->cur_vertex_shader || !vb)
if (!device->cur_vertex_shader || !vb) {
gl_bind_vertex_array(0);
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.
先完成此消息的编辑!
想要评论请 注册