win32: allow null pointer as shader path in d3d

This commit is contained in:
OV2 2013-04-13 17:04:28 +02:00
parent 41336a506f
commit a56ef3e518

View File

@ -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)