Skip to content

Fix cache writing condition in IShaderCompiler - #1107

Merged
Erfan-Ahmadi merged 1 commit into
masterfrom
shader_cache_null_result_fix
Oct 23, 2026
Merged

Erfan-Ahmadi merged 1 commit into
masterfrom
shader_cache_null_result_fix

Conversation

@Fletterio

Copy link
Copy Markdown
Contributor

When providing a write cache for shader compilation, if the shader failed to compile earlier, retVal is set to nullptr. This condition only checks for the existence of a write cache, but dereferences retVal carelessly

@devshgraphicsprogramming

Copy link
Copy Markdown
Member

@Erfan-Ahmadi

@Erfan-Ahmadi
Erfan-Ahmadi merged commit 0a81c65 into master Oct 23, 2026
26 checks passed
@Erfan-Ahmadi
Erfan-Ahmadi deleted the shader_cache_null_result_fix branch October 23, 2026 12:33
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