Merge pull request #938 from lioncash/var-assignment

d3d: Fix variable assignment in d3d_set_shader
This commit is contained in:
Twinaphex 2014-09-05 01:23:49 +02:00
commit 18754d5e4c

View File

@ -834,9 +834,9 @@ 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 = path;
d3d->cg_shader = shader;
if (!d3d_process_shader(d3d) || !d3d_restore(d3d))
{