summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/GLUtil.cpp
diff options
context:
space:
mode:
authorUnknown W. Brackets <checkins@unknownbrackets.org>2014-12-10 20:11:48 -0800
committerUnknown W. Brackets <checkins@unknownbrackets.org>2014-12-10 20:11:48 -0800
commit0861cb874460e16691f52bfa6e2f60505e7de39d (patch)
tree1ac95c7af9d3018d688f5dcebadc9e54187e4cc3 /Source/Core/VideoBackends/OGL/GLUtil.cpp
parentb19cff8a08a03b39653ea16ec5f51a2c80c5f2d1 (diff)
OGL: Properly reset the attributeless VAO.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/GLUtil.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/GLUtil.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/GLUtil.cpp b/Source/Core/VideoBackends/OGL/GLUtil.cpp
index f91b079c3b..f9b3ccb844 100644
--- a/Source/Core/VideoBackends/OGL/GLUtil.cpp
+++ b/Source/Core/VideoBackends/OGL/GLUtil.cpp
@@ -143,4 +143,7 @@ void OpenGL_DeleteAttributelessVAO()
{
glDeleteVertexArrays(1, &attributelessVAO);
glDeleteBuffers(1, &attributelessVBO);
+
+ attributelessVAO = 0;
+ attributelessVBO = 0;
}