mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Merge pull request #938 from lioncash/var-assignment
d3d: Fix variable assignment in d3d_set_shader
This commit is contained in:
commit
18754d5e4c
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user