hyprland/debian/patches/surfaces.patch

16 lines
973 B
Diff
Raw Normal View History

2025-01-28 11:48:13 +01:00
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index ee5d9a86..88aa5f59 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -875,7 +875,7 @@ void CHyprOpenGLImpl::begin(PHLMONITOR pMonitor, const CRegion& damage_, CFrameb
2025-01-27 15:11:37 +01:00
2025-01-28 11:48:13 +01:00
const auto PRBO = g_pHyprRenderer->getCurrentRBO();
const bool FBPROPERSIZE = !fb || fb->m_vSize == pMonitor->vecPixelSize;
- const bool USERFORCEDINTROSPECTION = *PFORCEINTROSPECTION == 1 ? true : (*PFORCEINTROSPECTION == 2 ? g_pHyprRenderer->isNvidia() : false); // 0 - no, 1 - yes, 2 - nvidia only
+ const bool USERFORCEDINTROSPECTION = *PFORCEINTROSPECTION == 1 || *PFORCEINTROSPECTION == 2 ? true : false; // 0 - no, 1 - yes, 2 - yes
2025-01-27 15:11:37 +01:00
2025-01-28 11:48:13 +01:00
if (USERFORCEDINTROSPECTION || m_RenderData.forceIntrospection || !FBPROPERSIZE || m_sFinalScreenShader.program > 0 ||
(PRBO && pMonitor->vecPixelSize != PRBO->getFB()->m_vSize) || passRequiresIntrospection(pMonitor)) {
2025-01-27 15:11:37 +01:00