Texcache: Cleanup last bound tex invalidation.

When we're deleting, we're always about to bind a new tex.
This commit is contained in:
Unknown W. Brackets committed 2017-03-25 11:42:24 -07:00
1 parent 6a88d6c5a4
commit 7fb7a4877d
5 files changed
+14 -11

No files matched your search

+2 -1
View File
@@ -340,6 +340,7 @@ void TextureCacheGLES::BindTexture(TexCacheEntry *entry) {
void TextureCacheGLES::Unbind() {
glBindTexture(GL_TEXTURE_2D, 0);
InvalidateLastTexture();
}
class TextureShaderApplier {
@@ -522,7 +523,7 @@ void TextureCacheGLES::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFram
CHECK_GL_ERROR_IF_DEBUG();
lastBoundTexture = INVALID_TEX;
InvalidateLastTexture();
}
ReplacedTextureFormat FromGLESFormat(GLenum fmt, bool useBGRA = false) {