diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-07-31 16:23:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-31 16:23:09 +0200 |
| commit | a907ecd4ff736a3a09410532b405a437eb48033c (patch) | |
| tree | 6e7ed001c06f224245ecf9c5e0c8206d6acd408f /src/render/pass/SurfacePassElement.cpp | |
| parent | 3e35797b18d35baae82657bb0438af88156e273f (diff) | |
opengl: improve render fn arg clarity (#11286)
Diffstat (limited to 'src/render/pass/SurfacePassElement.cpp')
| -rw-r--r-- | src/render/pass/SurfacePassElement.cpp | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/src/render/pass/SurfacePassElement.cpp b/src/render/pass/SurfacePassElement.cpp index 87c7016d..1d3d5bda 100644 --- a/src/render/pass/SurfacePassElement.cpp +++ b/src/render/pass/SurfacePassElement.cpp @@ -116,14 +116,38 @@ void CSurfacePassElement::draw(const CRegion& damage) { // to what we do for misaligned surfaces (blur the entire thing and then render shit without blur) if (m_data.surfaceCounter == 0 && !m_data.popup) { if (BLUR) - g_pHyprOpenGL->renderTextureWithBlur(TEXTURE, windowBox, ALPHA, m_data.surface, rounding, roundingPower, m_data.blockBlurOptimization, m_data.fadeAlpha, OVERALL_ALPHA); + g_pHyprOpenGL->renderTexture(TEXTURE, windowBox, + { + .surface = m_data.surface, + .a = ALPHA, + .blur = true, + .blurA = m_data.fadeAlpha, + .overallA = OVERALL_ALPHA, + .round = rounding, + .roundingPower = roundingPower, + .allowCustomUV = true, + .blockBlurOptimization = m_data.blockBlurOptimization, + }); else - g_pHyprOpenGL->renderTexture(TEXTURE, windowBox, ALPHA * OVERALL_ALPHA, rounding, roundingPower, false, true); + g_pHyprOpenGL->renderTexture(TEXTURE, windowBox, + {.a = ALPHA * OVERALL_ALPHA, .round = rounding, .roundingPower = roundingPower, .discardActive = false, .allowCustomUV = true}); } else { if (BLUR && m_data.popup) - g_pHyprOpenGL->renderTextureWithBlur(TEXTURE, windowBox, ALPHA, m_data.surface, rounding, roundingPower, true, m_data.fadeAlpha, OVERALL_ALPHA); + g_pHyprOpenGL->renderTexture(TEXTURE, windowBox, + { + .surface = m_data.surface, + .a = ALPHA, + .blur = true, + .blurA = m_data.fadeAlpha, + .overallA = OVERALL_ALPHA, + .round = rounding, + .roundingPower = roundingPower, + .allowCustomUV = true, + .blockBlurOptimization = true, + }); else - g_pHyprOpenGL->renderTexture(TEXTURE, windowBox, ALPHA * OVERALL_ALPHA, rounding, roundingPower, false, true); + g_pHyprOpenGL->renderTexture(TEXTURE, windowBox, + {.a = ALPHA * OVERALL_ALPHA, .round = rounding, .roundingPower = roundingPower, .discardActive = false, .allowCustomUV = true}); } if (!g_pHyprRenderer->m_bBlockSurfaceFeedback) |
