(360) Get rid of constant table - seem to be getting nowhere with

this
This commit is contained in:
TwinAphex51224 2012-03-11 03:40:52 +01:00
parent c5d8e1a75c
commit e30966bfd0
2 changed files with 3 additions and 8 deletions

View File

@ -271,7 +271,7 @@ static void *xdk360_gfx_init(const video_info_t *video, const input_driver_t **i
0, // flags
&pShaderCodeV, // compiled operations
&pErrorMsg, // errors
&vid->vertex_constant_table); // constants
NULL); // constants
if (SUCCEEDED(ret))
{
@ -285,7 +285,7 @@ static void *xdk360_gfx_init(const video_info_t *video, const input_driver_t **i
0, // flags
&pShaderCodeP, // compiled operations
&pErrorMsg, // errors
&vid->fragment_constant_table); // constants
NULL); // constants
}
if (FAILED(ret))
@ -353,7 +353,7 @@ static void *xdk360_gfx_init(const video_info_t *video, const input_driver_t **i
vp.MaxZ = 1.0f;
D3DDevice_SetViewport(vid->xdk360_render_device, &vp);
hlsl_program.modelViewProj = XMMatrixIdentity();
xdk360_set_orientation(g_console.screen_orientation);
return vid;
}
@ -395,9 +395,6 @@ static bool xdk360_gfx_frame(void *data, const void *frame,
vid->xdk360_render_device->SetVertexShaderConstantF(0, (FLOAT*)&hlsl_program.modelViewProj, 4);
vid->vertex_constant_table->SetDefaults(vid->xdk360_render_device);
vid->fragment_constant_table->SetDefaults(vid->xdk360_render_device);
//TODO: Update the shader constants
D3DLOCKED_RECT d3dlr;

View File

@ -53,8 +53,6 @@ typedef struct xdk360_video
IDirect3DVertexBuffer9* vertex_buf;
IDirect3DTexture9* font_texture;
IDirect3DTexture9* lpTexture;
LPD3DXCONSTANTTABLE vertex_constant_table;
LPD3DXCONSTANTTABLE fragment_constant_table;
D3DPRESENT_PARAMETERS d3dpp;
XVIDEO_MODE video_mode;
} xdk360_video_t;