renderer: fix constant re-renders

This commit is contained in:
Vaxry 2024-02-19 01:24:35 +00:00
parent 8287baca11
commit 0719ac671e

View file

@ -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;
}