Skip to content

Commit

Permalink
d3d11: Explicitly cast dlsyn result for vkd3d_shader_get_version
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Apr 26, 2024
1 parent 974923c commit 7b7e5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_d3d11.c
Expand Up @@ -652,7 +652,7 @@ MOJOSHADER_d3d11Context* MOJOSHADER_d3d11CreateContext(
#ifdef USING_VKD3D
unsigned int major, minor;
const char *(*vkd3d_shader_get_version)(unsigned int *, unsigned int *);
vkd3d_shader_get_version = dlsym(compileDLL, "vkd3d_shader_get_version");
vkd3d_shader_get_version = (const char *(*)(unsigned int *, unsigned int *)) dlsym(compileDLL, "vkd3d_shader_get_version");
if (vkd3d_shader_get_version == NULL)
{
UNLOAD_D3DCOMPILER(compileDLL);
Expand Down

0 comments on commit 7b7e5fd

Please sign in to comment.