From ea7f617df613a859ea59fb18131c31ac83ed16ea Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 28 Oct 2022 22:33:47 +0100 Subject: [PATCH] remove redundant check --- src/render/OpenGL.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 3ad39469..d52fee79 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -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);