mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 04:14:23 +00:00
(HLSL) small cleanups
This commit is contained in:
parent
f4f2ff386a
commit
2a8ea913c0
@ -288,7 +288,6 @@ static void xdk360_set_orientation(void * data, uint32_t orientation)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//hlsl_use(vid->xdk360_render_device, 0);
|
|
||||||
hlsl_set_proj_matrix(XMMatrixRotationZ(angle));
|
hlsl_set_proj_matrix(XMMatrixRotationZ(angle));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,6 @@ void hlsl_set_params(void)
|
|||||||
|
|
||||||
static bool load_program(unsigned index, const char *prog, bool path_is_file)
|
static bool load_program(unsigned index, const char *prog, bool path_is_file)
|
||||||
{
|
{
|
||||||
SSNES_LOG("test\n");
|
|
||||||
bool ret, ret_fp, ret_vp;
|
bool ret, ret_fp, ret_vp;
|
||||||
ID3DXBuffer *listing_f = NULL;
|
ID3DXBuffer *listing_f = NULL;
|
||||||
ID3DXBuffer *listing_v = NULL;
|
ID3DXBuffer *listing_v = NULL;
|
||||||
@ -105,6 +104,7 @@ static bool load_program(unsigned index, const char *prog, bool path_is_file)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* TODO - crashes currently - to do with 'end of line' of stock shader */
|
||||||
ret_fp = D3DXCompileShader(prog, (UINT)strlen(prog), NULL, NULL, "main_fragment", "ps_2_0", 0, &code_f, &listing_f, NULL );
|
ret_fp = D3DXCompileShader(prog, (UINT)strlen(prog), NULL, NULL, "main_fragment", "ps_2_0", 0, &code_f, &listing_f, NULL );
|
||||||
ret_vp = D3DXCompileShader(prog, (UINT)strlen(prog), NULL, NULL, "main_vertex", "vs_2_0", 0, &code_v, &listing_v, NULL );
|
ret_vp = D3DXCompileShader(prog, (UINT)strlen(prog), NULL, NULL, "main_vertex", "vs_2_0", 0, &code_v, &listing_v, NULL );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user