Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shader compile with metal in case decimal separator is comma #3467

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

mnaehrig
Copy link

GLSL version string was converted to floating point using sscanf. But sscanf expects decimal separator to match with current locale, while GLSL version string always uses period as decimal separator. This caused Storm to fail e.g. on german systems.

…cale is comma.

GLSL version string was converted to floating point using sscanf. But sscanf expects decimal separator to match with current locale while GLSL version string always uses period as decimal separator. This caused Storm to fail e.g. on german systems.
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10515

❗ Please make sure that a signed CLA has been submitted!

(This is an automated message. See here for more information.)

@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@meshula
Copy link
Member

meshula commented Dec 20, 2024

Thanks for finding this problem!

I was thinking it would be way simpler and local independent to parse like this, there's no need to use floating point numbers at all, really.

int major, minor;
sscanf(versionString, "%d.%d", major, minor);

@mnaehrig
Copy link
Author

You're right. Independent parsing of major and minor is way simpler. Thanks for this advise! Just changed it.

@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

3 participants