mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
renderer: fix constant re-renders
This commit is contained in:
parent
8287baca11
commit
0719ac671e
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue