(D3D) Style nits

This commit is contained in:
twinaphex 2015-04-05 15:53:06 +02:00
parent 24cc0b5e4d
commit 975464968f
3 changed files with 59 additions and 55 deletions

View File

@ -328,7 +328,8 @@ void d3d_texture_blit(void *data, unsigned pixel_size,
return;
#ifdef _XBOX
d3d_set_texture(d3d->dev, 0, NULL); // Set the texture to null so D3D don't complain about it being in use...
/* Set the texture to NULL so D3D doesn't complain about it being in use... */
d3d_set_texture(d3d->dev, 0, NULL);
D3DTexture_LockRect(tex, 0, lr, NULL, D3DLOCK_NOSYSLOCK);
#if defined(_XBOX360)
D3DSURFACE_DESC desc;

View File

@ -1006,6 +1006,7 @@ bool renderchain_render(void *chain_data, const void *data,
viewport.Height = to_pass->info.tex_h;
viewport.MinZ = 0.0f;
viewport.MaxZ = 1.0f;
d3d_set_viewport(d3dr, &viewport);
d3d_clear(d3dr, 0, 0, D3DCLEAR_TARGET, 0, 1, 0);

View File

@ -23,6 +23,7 @@ static void renderchain_set_mvp(void *data, unsigned vp_width,
static void renderchain_clear(void *data)
{
d3d_video_t *d3d = (d3d_video_t*)data;
d3d_texture_free(d3d->tex);
d3d_vertex_buffer_free(d3d->vertex_buf);
@ -126,7 +127,8 @@ static bool renderchain_init(void *data, const video_info_t *info)
return true;
}
static void renderchain_set_vertices(void *data, unsigned pass, unsigned width, unsigned height)
static void renderchain_set_vertices(void *data, unsigned pass,
unsigned width, unsigned height)
{
d3d_video_t *d3d = (d3d_video_t*)data;
runloop_t *runloop = rarch_main_get_ptr();
@ -134,12 +136,12 @@ static void renderchain_set_vertices(void *data, unsigned pass, unsigned width,
if (d3d->last_width != width || d3d->last_height != height)
{
unsigned i;
Vertex vert[4];
void *verts = NULL;
d3d->last_width = width;
d3d->last_height = height;
Vertex vert[4];
float tex_w = width;
float tex_h = height;
#ifdef _XBOX360