(D3D) Update d3d_lockrectangle_clear

This commit is contained in:
twinaphex 2015-04-07 00:07:17 +02:00
parent 20c9c6e240
commit 200a301eaa
2 changed files with 2 additions and 3 deletions

View File

@ -266,9 +266,8 @@ void d3d_lockrectangle_clear(void *data,
unsigned rectangle_height, unsigned flags)
{
#if defined(_XBOX)
d3d_video_t *d3d = (d3d_video_t*)data;
D3DTexture_LockRect(tex, level, lock_rect, rect, flags);
memset(lock_rect->pBits, 0, d3d->tex_h * lock_rect->Pitch);
memset(lock_rect->pBits, 0, rectangle_height * lock_rect->Pitch);
#else
if (SUCCEEDED(tex->LockRect(level, lock_rect, rect, flags)))
{

View File

@ -220,7 +220,7 @@ static void renderchain_blit_to_texture(void *data, const void *frame,
if (d3d->last_width != width || d3d->last_height != height)
{
d3d_lockrectangle_clear(d3d, d3d->tex,
0, &d3dlr, NULL, 0 /* FIXME - stub */, D3DLOCK_NOSYSLOCK);
0, &d3dlr, NULL, d3d->tex_h, D3DLOCK_NOSYSLOCK);
}
d3d_texture_blit(driver->video_data, 0, d3d->tex,