From 0861cb874460e16691f52bfa6e2f60505e7de39d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 10 Dec 2014 20:11:48 -0800 Subject: [PATCH] OGL: Properly reset the attributeless VAO. --- Source/Core/VideoBackends/OGL/GLUtil.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }