mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-22 13:48:34 +00:00
Prevent leaking VBOs on shutdown also.
This commit is contained in:
parent
f2410e2110
commit
c3a0c14f39
@ -193,6 +193,7 @@ void TransformDrawEngine::InitDeviceObjects() {
|
||||
}
|
||||
|
||||
void TransformDrawEngine::DestroyDeviceObjects() {
|
||||
ClearTrackedVertexArrays();
|
||||
if (!bufferNameCache_.empty()) {
|
||||
glstate.arrayBuffer.unbind();
|
||||
glstate.elementArrayBuffer.unbind();
|
||||
@ -205,7 +206,6 @@ void TransformDrawEngine::DestroyDeviceObjects() {
|
||||
glDeleteVertexArrays(1, &sharedVao_);
|
||||
}
|
||||
}
|
||||
ClearTrackedVertexArrays();
|
||||
}
|
||||
|
||||
void TransformDrawEngine::GLLost() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user