diff --git a/gfx/d3d/d3d_wrapper.cpp b/gfx/d3d/d3d_wrapper.cpp index b7efc44c94..f2a3ea155f 100644 --- a/gfx/d3d/d3d_wrapper.cpp +++ b/gfx/d3d/d3d_wrapper.cpp @@ -260,8 +260,7 @@ void d3d_clear(LPDIRECT3DDEVICE dev, #endif } -void d3d_lockrectangle_clear(void *data, - LPDIRECT3DTEXTURE tex, +void d3d_lockrectangle_clear(LPDIRECT3DTEXTURE tex, unsigned level, D3DLOCKED_RECT *lock_rect, RECT *rect, unsigned rectangle_height, unsigned flags) { diff --git a/gfx/d3d/d3d_wrapper.h b/gfx/d3d/d3d_wrapper.h index c15a43c2c0..f46e32a4da 100644 --- a/gfx/d3d/d3d_wrapper.h +++ b/gfx/d3d/d3d_wrapper.h @@ -66,8 +66,7 @@ void d3d_clear(LPDIRECT3DDEVICE dev, unsigned count, const D3DRECT *rects, unsigned flags, D3DCOLOR color, float z, unsigned stencil); -void d3d_lockrectangle_clear(void *data, - LPDIRECT3DTEXTURE tex, +void d3d_lockrectangle_clear(LPDIRECT3DTEXTURE tex, unsigned level, D3DLOCKED_RECT *lock_rect, RECT *rect, unsigned rectangle_height, unsigned flags); diff --git a/gfx/d3d/render_chain_cg.cpp b/gfx/d3d/render_chain_cg.cpp index fb4179c6c1..697ad5dd8c 100644 --- a/gfx/d3d/render_chain_cg.cpp +++ b/gfx/d3d/render_chain_cg.cpp @@ -1326,7 +1326,7 @@ static void renderchain_blit_to_texture(void *data, if (first->last_width != width || first->last_height != height) { - d3d_lockrectangle_clear(first, first->tex, 0, &d3dlr, + d3d_lockrectangle_clear(first->tex, 0, &d3dlr, NULL, first->info.tex_h, D3DLOCK_NOSYSLOCK); } diff --git a/gfx/d3d/render_chain_xdk.cpp b/gfx/d3d/render_chain_xdk.cpp index 9960e9a302..59db3c8590 100644 --- a/gfx/d3d/render_chain_xdk.cpp +++ b/gfx/d3d/render_chain_xdk.cpp @@ -231,7 +231,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, + d3d_lockrectangle_clear(d3d->tex, 0, &d3dlr, NULL, d3d->tex_h, D3DLOCK_NOSYSLOCK); }