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

Change error code on sampler count mismatch to invalid_gltf #242

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Change error code on sampler count mismatch to invalid_gltf #242

merged 2 commits into from
Jan 11, 2024

Conversation

zeux
Copy link
Contributor

@zeux zeux commented Jan 4, 2024

This error as it stands is a little misleading: it's the only case where we emit an error like this when the sizes aren't equal, so it can hit when the output count is larger (so there's technically enough data, but the glTF file is still invalid per spec / per Khronos validator). In other cases where a size mismatches like this we currently emit invalid_gltf so this seems to make more sense.

zeux added 2 commits January 4, 2024 11:16
This error as it stands is a little misleading: it's the only case where
we emit an error like this when the sizes aren't equal, so it can hit
when the output count is *larger* (so there's technically enough data,
but the glTF file is still invalid per spec / per Khronos validator). In
other cases where a size mismatches like this we currently emit
invalid_gltf so this seems to make more sense.
@zeux
Copy link
Contributor Author

zeux commented Jan 4, 2024

The build error was unrelated to the PR (glTF-Sample-Models changed from master to main) but it was just one line to fix so I fixed it in this PR as it would need that fix to become green anyway.

@jkuhlmann jkuhlmann merged commit 3531d8c into jkuhlmann:master Jan 11, 2024
3 checks passed
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.

2 participants