mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Fix Win32 build.
This commit is contained in:
parent
b19cf62c63
commit
ca2715841b
@ -317,7 +317,7 @@ bool d3d_init_singlepass(void *data)
|
|||||||
pass.fbo.valid = true;
|
pass.fbo.valid = true;
|
||||||
pass.fbo.scale_x = pass.fbo.scale_y = 1.0;
|
pass.fbo.scale_x = pass.fbo.scale_y = 1.0;
|
||||||
pass.fbo.type_x = pass.fbo.type_y = RARCH_SCALE_VIEWPORT;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ bool renderchain_add_pass(void *data, const LinkInfo *info)
|
|||||||
pass.last_width = 0;
|
pass.last_width = 0;
|
||||||
pass.last_height = 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))
|
if (!renderchain_init_shader_fvf(chain, pass))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -375,7 +375,7 @@ bool renderchain_create_first_pass(void *data, const LinkInfo *info, PixelFormat
|
|||||||
d3dr->SetTexture(0, NULL);
|
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))
|
if (!renderchain_init_shader_fvf(chain, pass))
|
||||||
return false;
|
return false;
|
||||||
chain->passes.push_back(pass);
|
chain->passes.push_back(pass);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user