mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-04 07:57:25 +00:00
win32: allow null pointer as shader path in d3d
This commit is contained in:
parent
41336a506f
commit
a56ef3e518
@ -1293,7 +1293,11 @@ static bool d3d9_set_shader(void *data, enum rarch_shader_type type, const char
|
||||
}
|
||||
#endif
|
||||
|
||||
return reinterpret_cast<D3DVideo*>(data)->set_shader(path);
|
||||
std::string shader = "";
|
||||
if (path)
|
||||
shader = path;
|
||||
|
||||
return reinterpret_cast<D3DVideo*>(data)->set_shader(shader);
|
||||
}
|
||||
|
||||
#if defined(HAVE_RGUI)
|
||||
|
Loading…
x
Reference in New Issue
Block a user