mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
(XDK D3D) Build fix
This commit is contained in:
parent
39c1ec4672
commit
82c7e8f422
@ -230,7 +230,7 @@ static bool xdk_init_font(void *data, const char *font_path, unsigned font_size)
|
||||
}
|
||||
|
||||
// Create the vertex and pixel shaders for rendering the font
|
||||
if (FAILED(xdk360_video_font_create_shaders(font)))
|
||||
if (FAILED(xdk360_video_font_create_shaders(d3d, font)))
|
||||
{
|
||||
RARCH_ERR( "Could not create font shaders.\n" );
|
||||
goto error;
|
||||
|
@ -244,7 +244,7 @@ static bool load_plain(void *data, const char *path)
|
||||
{
|
||||
RARCH_LOG("Loading Cg/HLSL file: %s\n", path);
|
||||
strlcpy(cg_shader->pass[0].source.cg, path, sizeof(cg_shader->pass[0].source.cg));
|
||||
if (!load_program(1, path, true))
|
||||
if (!load_program(data, 1, path, true))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
@ -253,7 +253,7 @@ static void set_mvp(void *data, unsigned vp_width, unsigned vp_height, unsigned
|
||||
#if defined(_XBOX360) && defined(HAVE_HLSL)
|
||||
hlsl_set_proj_matrix(XMMatrixRotationZ(rotation * (M_PI / 2.0)));
|
||||
if (d3d->shader && d3d->shader->set_mvp)
|
||||
d3d->shader->set_mvp(NULL);
|
||||
d3d->shader->set_mvp(d3d, NULL);
|
||||
#elif defined(_XBOX1)
|
||||
D3DXMATRIX p_out, p_rotate, mat;
|
||||
D3DXMatrixOrthoOffCenterLH(&mat, 0, vp_width, vp_height, 0, 0.0f, 1.0f);
|
||||
|
Loading…
Reference in New Issue
Block a user