Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Oct 28, 2022
1 parent 644c64d commit ea7f617
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/render/OpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,6 @@ void CHyprOpenGLImpl::end() {

clear(CColor(11, 11, 11, 255));

if (m_RenderData.pCurrentMonData->primaryFB.m_cTex.m_iTexID == 0) {
Debug::log(ERR, "Couldn't end() frame (primary FB tex null???)");

// this apparently sometimes happens during lid switches... for some people?
// release all resources, will be recalc'd
destroyMonitorResources(m_RenderData.pMonitor);

m_RenderData.pMonitor = nullptr;
m_iWLROutputFb = 0;
return;
}

m_bEndFrame = true;

renderTexture(m_RenderData.pCurrentMonData->primaryFB.m_cTex, &monbox, 255.f, 0);
Expand Down

0 comments on commit ea7f617

Please sign in to comment.