Fix Win32 build.

This commit is contained in:
Themaister 2014-05-26 18:52:35 +02:00
parent b19cf62c63
commit ca2715841b
2 changed files with 3 additions and 3 deletions

View File

@ -317,7 +317,7 @@ bool d3d_init_singlepass(void *data)
pass.fbo.valid = true;
pass.fbo.scale_x = pass.fbo.scale_y = 1.0;
pass.fbo.type_x = pass.fbo.type_y = RARCH_SCALE_VIEWPORT;
strlcpy(pass.source.cg, d3d->cg_shader.c_str(), sizeof(pass.source.cg));
strlcpy(pass.source.path, d3d->cg_shader.c_str(), sizeof(pass.source.path));
return true;
}

View File

@ -146,7 +146,7 @@ bool renderchain_add_pass(void *data, const LinkInfo *info)
pass.last_width = 0;
pass.last_height = 0;
renderchain_compile_shaders(chain, pass.fPrg, pass.vPrg, info->pass->source.cg);
renderchain_compile_shaders(chain, pass.fPrg, pass.vPrg, info->pass->source.path);
if (!renderchain_init_shader_fvf(chain, pass))
return false;
@ -375,7 +375,7 @@ bool renderchain_create_first_pass(void *data, const LinkInfo *info, PixelFormat
d3dr->SetTexture(0, NULL);
}
renderchain_compile_shaders(chain, pass.fPrg, pass.vPrg, info->pass->source.cg);
renderchain_compile_shaders(chain, pass.fPrg, pass.vPrg, info->pass->source.path);
if (!renderchain_init_shader_fvf(chain, pass))
return false;
chain->passes.push_back(pass);