mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
Invert the relationship between the two functions
This commit is contained in:
1 parent
a4b4489d30
commit
0528646ea3
5 files changed
+22
-24
No files matched your search
@@ -1002,13 +1002,12 @@ void TextureCacheVulkan::BoundFramebufferTexture() {
|
||||
}
|
||||
|
||||
bool TextureCacheVulkan::GetCurrentTextureDebug(GPUDebugBuffer &buffer, int level, bool *isFramebuffer) {
|
||||
SetTexture();
|
||||
if (!nextTexture_) {
|
||||
// Apply texture may need to rebuild the texture if we're about to render, or bind a framebuffer.
|
||||
TextureApplyResult textureResult = ApplyTexture(true);
|
||||
if (textureResult.framebuffer) {
|
||||
return GetCurrentFramebufferTextureDebug(buffer, isFramebuffer);
|
||||
}
|
||||
|
||||
// Apply texture may need to rebuild the texture if we're about to render, or bind a framebuffer.
|
||||
TextureApplyResult textureResult = ApplyTexture(true);
|
||||
TexCacheEntry *entry = textureResult.texCacheEntry;
|
||||
if (!entry || !entry->vkTex) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user