Add a way to get to the current texture as well.

This commit is contained in:
Unknown W. Brackets committed 2013-09-27 22:46:08 -07:00
1 parent 75f2995f25
commit 81e71dd8d7
7 files changed
+41 -6

No files matched your search

+5 -1
View File
@@ -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.