From a56ef3e518e3bf8983502a1bac471ba2920ef4f2 Mon Sep 17 00:00:00 2001 From: OV2 Date: Sat, 13 Apr 2013 17:04:28 +0200 Subject: [PATCH] win32: allow null pointer as shader path in d3d --- gfx/d3d9/d3d9.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/d3d9/d3d9.cpp b/gfx/d3d9/d3d9.cpp index 12e3f887e2..35123853f5 100644 --- a/gfx/d3d9/d3d9.cpp +++ b/gfx/d3d9/d3d9.cpp @@ -1293,7 +1293,11 @@ static bool d3d9_set_shader(void *data, enum rarch_shader_type type, const char } #endif - return reinterpret_cast(data)->set_shader(path); + std::string shader = ""; + if (path) + shader = path; + + return reinterpret_cast(data)->set_shader(shader); } #if defined(HAVE_RGUI)