(XDK D3D) Build fix

This commit is contained in:
twinaphex 2014-03-07 05:56:23 +01:00
parent 39c1ec4672
commit 82c7e8f422
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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);