(D3D) Update d3d_lockrectangle_clear
This commit is contained in:
parent
20c9c6e240
commit
200a301eaa
|
@ -266,9 +266,8 @@ void d3d_lockrectangle_clear(void *data,
|
||||||
unsigned rectangle_height, unsigned flags)
|
unsigned rectangle_height, unsigned flags)
|
||||||
{
|
{
|
||||||
#if defined(_XBOX)
|
#if defined(_XBOX)
|
||||||
d3d_video_t *d3d = (d3d_video_t*)data;
|
|
||||||
D3DTexture_LockRect(tex, level, lock_rect, rect, flags);
|
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
|
#else
|
||||||
if (SUCCEEDED(tex->LockRect(level, lock_rect, rect, flags)))
|
if (SUCCEEDED(tex->LockRect(level, lock_rect, rect, flags)))
|
||||||
{
|
{
|
||||||
|
|
|
@ -220,7 +220,7 @@ static void renderchain_blit_to_texture(void *data, const void *frame,
|
||||||
if (d3d->last_width != width || d3d->last_height != height)
|
if (d3d->last_width != width || d3d->last_height != height)
|
||||||
{
|
{
|
||||||
d3d_lockrectangle_clear(d3d, d3d->tex,
|
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,
|
d3d_texture_blit(driver->video_data, 0, d3d->tex,
|
||||||
|
|
Loading…
Reference in New Issue