mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
thin3d: Clear bound VBOs when not using.
Nothing clears them, so if one draw does, any later UP draws won't work.
This commit is contained in:
parent
4f1851abc1
commit
ac4ee88c73
1 changed files with 2 additions and 0 deletions
|
@ -813,6 +813,8 @@ void Thin3DGLContext::DrawUP(T3DPrimitive prim, Thin3DShaderSet *shaderSet, Thin
|
|||
fmt->Apply(vdata);
|
||||
ss->Apply();
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||
glDrawArrays(primToGL[prim], 0, vertexCount);
|
||||
|
||||
ss->Unapply();
|
||||
|
|
Loading…
Add table
Reference in a new issue