mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-24 10:10:13 +01:00
opengl: add missing skipcm if case (#10888)
missing skipcm if case so the CM uniforms where never added on the gradient2 renderBorder case, until the non gradient2 one had run atleast once. causing it to not render on first launch/delayed.
This commit is contained in:
parent
9adacef70b
commit
e827b75e22
1 changed files with 6 additions and 0 deletions
|
|
@ -2367,6 +2367,12 @@ void CHyprOpenGLImpl::renderBorder(const CBox& box, const CGradientValueData& gr
|
|||
blend(true);
|
||||
|
||||
useProgram(m_shaders->m_shBORDER1.program);
|
||||
|
||||
const bool skipCM = !m_cmSupported || m_renderData.pMonitor->m_imageDescription == SImageDescription{};
|
||||
m_shaders->m_shBORDER1.setUniformInt(SHADER_SKIP_CM, skipCM);
|
||||
if (!skipCM)
|
||||
passCMUniforms(m_shaders->m_shBORDER1, SImageDescription{});
|
||||
|
||||
m_shaders->m_shBORDER1.setUniformMatrix3fv(SHADER_PROJ, 1, GL_TRUE, glMatrix.getMatrix());
|
||||
m_shaders->m_shBORDER1.setUniform4fv(SHADER_GRADIENT, grad1.m_colorsOkLabA.size() / 4, grad1.m_colorsOkLabA);
|
||||
m_shaders->m_shBORDER1.setUniformInt(SHADER_GRADIENT_LENGTH, grad1.m_colorsOkLabA.size() / 4);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue