From 161efea38eafebbd51ace6fd4edb40e47717cc5a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 7 Oct 2015 22:11:24 -0700 Subject: [PATCH] Prevent unbinding array buffer in depal. --- GPU/GLES/TextureCache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 352f15192b..7a2d711524 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -1092,8 +1092,9 @@ void TextureCache::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuf glUseProgram(depal->program); - glstate.arrayBuffer.unbind(); - glstate.elementArrayBuffer.unbind(); + // Restore will rebind all of the state below. + glBindBuffer(GL_ARRAY_BUFFER, 0); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glEnableVertexAttribArray(depal->a_position); glEnableVertexAttribArray(depal->a_texcoord0);