mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(d3d_wrapper.cpp ) Cleanup
This commit is contained in:
parent
e9f08dfafe
commit
7d162b79c0
@ -268,9 +268,9 @@ void d3d_lockrectangle_clear(void *data,
|
||||
unsigned rectangle_height, unsigned flags)
|
||||
{
|
||||
#if defined(_XBOX)
|
||||
d3d_video_t *chain = (d3d_video_t*)data;
|
||||
d3d_video_t *d3d = (d3d_video_t*)data;
|
||||
D3DTexture_LockRect(tex, level, lock_rect, rect, flags);
|
||||
memset(lock_rect->pBits, 0, chain->tex_h * lock_rect->Pitch);
|
||||
memset(lock_rect->pBits, 0, d3d->tex_h * lock_rect->Pitch);
|
||||
#else
|
||||
if (SUCCEEDED(tex->LockRect(level, lock_rect, rect, flags)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user