Invert the relationship between the two functions

This commit is contained in:
Henrik Rydgård committed 2026-07-16 19:08:18 +02:00
1 parent a4b4489d30
commit 0528646ea3
5 files changed
+22 -24

No files matched your search

+3 -4
View File
@@ -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;