From af87c70c7631de62dddb9045cee8abd7dbaefbda Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 31 Jul 2024 09:12:33 -0300 Subject: [PATCH] Unused variable. --- src/hle/rt64_present_queue.cpp | 6 +++--- src/hle/rt64_present_queue.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hle/rt64_present_queue.cpp b/src/hle/rt64_present_queue.cpp index 9d0d7c7..6e85b8d 100644 --- a/src/hle/rt64_present_queue.cpp +++ b/src/hle/rt64_present_queue.cpp @@ -92,7 +92,7 @@ namespace RT64 { presentThread = new std::thread(&PresentQueue::threadLoop, this); } - void PresentQueue::threadPresent(const Present &present, bool &swapChainValid, uint32_t &swapChainIndex) { + void PresentQueue::threadPresent(const Present &present, bool &swapChainValid) { FramebufferManager &fbManager = ext.sharedResources->framebufferManager; RenderTargetManager &targetManager = ext.sharedResources->renderTargetManager; const bool usingMSAA = (targetManager.multisampling.sampleCount > 1); @@ -444,7 +444,6 @@ namespace RT64 { uint32_t displayTimingRate = UINT32_MAX; const bool displayTiming = ext.device->getCapabilities().displayTiming; bool swapChainValid = !ext.swapChain->needsResize(); - uint32_t swapChainIndex = UINT32_MAX; while (presentThreadRunning) { { std::unique_lock cursorLock(cursorMutex); @@ -503,7 +502,7 @@ namespace RT64 { notifyPresentId(present); } else { - threadPresent(present, swapChainValid, swapChainIndex); + threadPresent(present, swapChainValid); } if (!present.fbOperations.empty()) { @@ -520,6 +519,7 @@ namespace RT64 { } // Transition the active swap chain render target out of the present state to avoid live references to the resource. + uint32_t swapChainIndex = 0; if (!ext.swapChain->isEmpty() && ext.swapChain->acquireTexture(acquiredSemaphore.get(), &swapChainIndex)) { RenderTexture *swapChainTexture = ext.swapChain->getTexture(swapChainIndex); ext.presentGraphicsWorker->commandList->begin(); diff --git a/src/hle/rt64_present_queue.h b/src/hle/rt64_present_queue.h index c81dc87..f95befd 100644 --- a/src/hle/rt64_present_queue.h +++ b/src/hle/rt64_present_queue.h @@ -65,7 +65,7 @@ namespace RT64 { void waitForIdle(); void waitForPresentId(uint64_t waitId); void setup(const External &ext); - void threadPresent(const Present &present, bool &swapChainValid, uint32_t &swapChainIndex); + void threadPresent(const Present &present, bool &swapChainValid); void skipInterpolation(); void notifyPresentId(const Present &present); void threadAdvanceBarrier();