mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01:00
Add a way to get to the current texture as well.
This commit is contained in:
1 parent
75f2995f25
commit
81e71dd8d7
7 files changed
+41
-6
No files matched your search
@@ -780,7 +780,7 @@ void TextureCache::SetTextureFramebuffer(TexCacheEntry *entry)
|
||||
}
|
||||
}
|
||||
|
||||
void TextureCache::SetTexture() {
|
||||
void TextureCache::SetTexture(bool force) {
|
||||
#ifdef DEBUG_TEXTURES
|
||||
if (SetDebugTexture()) {
|
||||
// A different texture was bound, let's rebind next time.
|
||||
@@ -789,6 +789,10 @@ void TextureCache::SetTexture() {
|
||||
}
|
||||
#endif
|
||||
|
||||
if (force) {
|
||||
lastBoundTexture = -1;
|
||||
}
|
||||
|
||||
u32 texaddr = gstate.getTextureAddress(0);
|
||||
if (!Memory::IsValidAddress(texaddr)) {
|
||||
// Bind a null texture and return.
|
||||
|
||||
Reference in new issue
Block a user