Skip to content

Shader Minifier Mesa Bugfix#108

Open
yasirtug wants to merge 1 commit into
rive-app:mainfrom
yasirtug:minifier-spacing-bugfix
Open

Shader Minifier Mesa Bugfix#108
yasirtug wants to merge 1 commit into
rive-app:mainfrom
yasirtug:minifier-spacing-bugfix

Conversation

@yasirtug

Copy link
Copy Markdown

Apparently, while compiling shaders, Mesa on some platforms rejects expressions like this:
void fn(OUT(vec2)A)

while accepting
void fn(OUT(vec2) A)

This change fixes that by adding a blank space there. The matching might be too broad, but I couldn't find any tests regarding minification, so I am not aware of any cases this might break things. In my experience, all previously rejected shaders are compiled successfully after this fix.

This is discovered with the help of AI tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant