Skip to content

opengl: add missing skipcm if case#10888

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
gulafaran:borders
Jul 1, 2025
Merged

opengl: add missing skipcm if case#10888
vaxerski merged 1 commit into
hyprwm:mainfrom
gulafaran:borders

Conversation

@gulafaran

Copy link
Copy Markdown
Contributor

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.

fixes: #9888

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.
@gulafaran

Copy link
Copy Markdown
Contributor Author

@UjinT34 i guess this makes sense? was mostly trial and error here

@gulafaran

Copy link
Copy Markdown
Contributor Author

@UjinT34 i guess this makes sense? was mostly trial and error here

yeah it certainly makes sense, borders where glitching over shadows before with cm_enabled = true this solves that too.

@UjinT34

UjinT34 commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

Yeah, missed this one. Those 2 renderBorder functions have a lot of common code. Might be reasonable to extract the common part to avoid similar mistakes in the future

@vaxerski vaxerski merged commit e827b75 into hyprwm:main Jul 1, 2025
13 checks passed
@gulafaran gulafaran deleted the borders branch July 7, 2025 14:27
@UjinT34 UjinT34 mentioned this pull request Jul 12, 2025
68 tasks
crthpl pushed a commit to crthpl/Hyprland that referenced this pull request Jun 3, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Border rendering does not work for the first few seconds on launch

3 participants