(HLSL) small cleanups

This commit is contained in:
TwinAphex51224 2012-04-14 22:19:39 +02:00
parent f4f2ff386a
commit 2a8ea913c0
2 changed files with 1 additions and 2 deletions

View File

@ -288,7 +288,6 @@ static void xdk360_set_orientation(void * data, uint32_t orientation)
break;
}
//hlsl_use(vid->xdk360_render_device, 0);
hlsl_set_proj_matrix(XMMatrixRotationZ(angle));
}

View File

@ -87,7 +87,6 @@ void hlsl_set_params(void)
static bool load_program(unsigned index, const char *prog, bool path_is_file)
{
SSNES_LOG("test\n");
bool ret, ret_fp, ret_vp;
ID3DXBuffer *listing_f = NULL;
ID3DXBuffer *listing_v = NULL;
@ -105,6 +104,7 @@ static bool load_program(unsigned index, const char *prog, bool path_is_file)
}
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_vp = D3DXCompileShader(prog, (UINT)strlen(prog), NULL, NULL, "main_vertex", "vs_2_0", 0, &code_v, &listing_v, NULL );
}