mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Texcache: Cleanup last bound tex invalidation.
When we're deleting, we're always about to bind a new tex.
This commit is contained in:
1 parent
6a88d6c5a4
commit
7fb7a4877d
5 files changed
+14
-11
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user