diff --git a/gfx/d3d9/d3d.cpp b/gfx/d3d9/d3d.cpp index ff56140d92..3bf71d81ff 100644 --- a/gfx/d3d9/d3d.cpp +++ b/gfx/d3d9/d3d.cpp @@ -834,7 +834,7 @@ static bool d3d_set_shader(void *data, enum rarch_shader_type type, const char * if (path && type == RARCH_SHADER_CG) shader = path; - auto old_shader = d3d->cg_shader; + std::string old_shader = d3d->cg_shader; bool restore_old = false; d3d->cg_shader = shader;