Merge pull request #8039 from unknownbrackets/tex-split

Prevent unbinding array buffer in depal (for 1.1.1)
This commit is contained in:
Henrik Rydgård committed 2015-10-08 08:53:27 +02:00
commit a212ebd225
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);