diff --git a/gfx/fonts/xdk360_fonts.cpp b/gfx/fonts/xdk360_fonts.cpp index 9dce521965..6e917dc9e6 100644 --- a/gfx/fonts/xdk360_fonts.cpp +++ b/gfx/fonts/xdk360_fonts.cpp @@ -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; diff --git a/gfx/shader_hlsl.c b/gfx/shader_hlsl.c index a7313990ab..6492f652c5 100644 --- a/gfx/shader_hlsl.c +++ b/gfx/shader_hlsl.c @@ -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 diff --git a/xdk/xdk_d3d.cpp b/xdk/xdk_d3d.cpp index a227f94956..fba6d040d6 100644 --- a/xdk/xdk_d3d.cpp +++ b/xdk/xdk_d3d.cpp @@ -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);