summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index ffcd13d4..c11fd8c0 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -164,7 +164,7 @@ bool CHyprOpenGLImpl::passRequiresIntrospection(CMonitor* pMonitor) {
}
}
- if (*PXRAY)
+ if (**PXRAY)
return false;
for (auto& w : g_pCompositor->m_vWindows) {
@@ -249,7 +249,7 @@ void CHyprOpenGLImpl::begin(CMonitor* pMonitor, CRegion* pDamage, CFramebuffer*
}
const auto PRBO = g_pHyprRenderer->getCurrentRBO();
- const bool FBPROPERSIZE = fb && fb->m_vSize == pMonitor->vecPixelSize;
+ const bool FBPROPERSIZE = !fb || fb->m_vSize == pMonitor->vecPixelSize;
if (m_RenderData.forceIntrospection || !FBPROPERSIZE || m_sFinalScreenShader.program > 0 || (PRBO && pMonitor->vecPixelSize != PRBO->getFB()->m_vSize) ||
passRequiresIntrospection(pMonitor)) {