Skip to content

Commit

Permalink
Allow library users to print DXC errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
photex committed Dec 12, 2024
1 parent 836db4f commit 700e9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL_shadercross.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ static void *SDL_ShaderCross_INTERNAL_CreateShaderFromHLSL(
&bytecodeSize);

if (spirv == NULL) {
SDL_SetError("%s", "Failed to compile SPIR-V!");
// Error output from DXC will have already been set
return NULL;
}

Expand Down

0 comments on commit 700e9b3

Please sign in to comment.