mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Use the CPU blitter for clearing depth/stencil textures that are current in the map binding.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
aa199aca5c
commit
2f0b945235
1 changed files with 3 additions and 1 deletions
|
@ -2596,7 +2596,9 @@ static void ffp_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de
|
|||
|
||||
if (flags & (WINED3DCLEAR_ZBUFFER | WINED3DCLEAR_STENCIL))
|
||||
{
|
||||
if (fb->depth_stencil && fb->depth_stencil->resource->pool == WINED3D_POOL_SYSTEM_MEM)
|
||||
view = fb->depth_stencil;
|
||||
if (view && (view->resource->pool == WINED3D_POOL_SYSTEM_MEM
|
||||
|| ffp_blitter_use_cpu_clear(view)))
|
||||
goto next;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue