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

ShaderStateComponent : Handle ToGLTextureConverter exceptions #1418

Merged
merged 1 commit into from
May 28, 2024

Conversation

johnhaddon
Copy link
Member

These were thrown if a GLSL shader had bad values for a texture parameter - the case that motivated this was a custom setup in production that would pass a CompoundData with no channels and an empty data window.

We can't let the exception propagate because addParametersToShaderSetup() is called during drawing and the exception would prevent the rest of the scene drawing and/or lead to a corrupted GL state.

These were thrown if a GLSL shader had bad values for a texture parameter - the case that motivated this was a custom setup in production that would pass a CompoundData with no channels and an empty data window.

We can't let the exception propagate because `addParametersToShaderSetup()` is called during drawing and the exception would prevent the rest of the scene drawing and/or lead to a corrupted GL state.
@johnhaddon johnhaddon self-assigned this May 23, 2024
@danieldresser-ie
Copy link
Contributor

LGTM

@johnhaddon johnhaddon merged commit 4bd6000 into ImageEngine:RB-10.5 May 28, 2024
4 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