From 0719ac671eb55308268d30c47e9e2beac4fb1261 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 19 Feb 2024 01:24:35 +0000 Subject: [PATCH] renderer: fix constant re-renders --- src/renderer/Renderer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer/Renderer.cpp b/src/renderer/Renderer.cpp index 4fd1514..37eb6ac 100644 --- a/src/renderer/Renderer.cpp +++ b/src/renderer/Renderer.cpp @@ -129,8 +129,6 @@ CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - float bga = 0; - SRenderFeedback feedback; if (!asyncResourceGatherer->ready) { @@ -157,7 +155,8 @@ CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf Debug::log(TRACE, "frame {}", frames); - feedback.needsFrame = feedback.needsFrame || bga < 1.0; + feedback.needsFrame = feedback.needsFrame || !asyncResourceGatherer->ready; + return feedback; }