Prevent unbinding array buffer in depal.

This commit is contained in:
Unknown W. Brackets committed 2015-10-07 22:11:24 -07:00
1 parent 371e7ab880
commit 161efea38e
1 file changed
+3 -2
+3 -2
View File
@@ -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);