mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 10:26:00 +01:00
renderer: minor fixes for introspection detection
This commit is contained in:
parent
d9757b61bf
commit
c353b7c4f7
2 changed files with 4 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
|
@ -1141,7 +1141,8 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
|
|||
static auto* const PBLURENABLED = (Hyprlang::INT* const*)g_pConfigManager->getConfigValuePtr("decoration:blur:enabled");
|
||||
|
||||
// if we use blur we need to expand the damage for proper blurring
|
||||
if (**PBLURENABLED == 1) {
|
||||
// if framebuffer was not offloaded we're not doing introspection aka not blurring so this is redundant and dumb
|
||||
if (**PBLURENABLED == 1 && g_pHyprOpenGL->m_bOffloadedFramebuffer) {
|
||||
// TODO: can this be optimized?
|
||||
static auto* const PBLURSIZE = (Hyprlang::INT* const*)g_pConfigManager->getConfigValuePtr("decoration:blur:size");
|
||||
static auto* const PBLURPASSES = (Hyprlang::INT* const*)g_pConfigManager->getConfigValuePtr("decoration:blur:passes");
|
||||
|
|
Loading…
Reference in a new issue