1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ddraw: Don't apply state in ddraw_surface_blt().

This commit is contained in:
Paul Gofman 2024-03-19 14:01:59 -06:00 committed by Alexandre Julliard
parent 4e81f66127
commit 2e088045b5

View file

@ -1563,7 +1563,6 @@ static HRESULT ddraw_surface_blt(struct ddraw_surface *dst_surface, const RECT *
const struct wined3d_blt_fx *fx, enum wined3d_texture_filter_type filter)
{
struct ddraw *ddraw = dst_surface->ddraw;
struct wined3d_device *wined3d_device = ddraw->wined3d_device;
struct wined3d_color colour;
DWORD wined3d_flags;
HRESULT hr;
@ -1578,7 +1577,6 @@ static HRESULT ddraw_surface_blt(struct ddraw_surface *dst_surface, const RECT *
dst_surface->palette, fill_colour, &colour))
return DDERR_INVALIDPARAMS;
wined3d_device_apply_stateblock(wined3d_device, ddraw->state);
ddraw_surface_get_draw_texture(dst_surface, dst_rect ? DDRAW_SURFACE_RW : DDRAW_SURFACE_WRITE);
hr = wined3d_device_context_clear_rendertarget_view(ddraw->immediate_context,
ddraw_surface_get_rendertarget_view(dst_surface),
@ -1597,7 +1595,6 @@ static HRESULT ddraw_surface_blt(struct ddraw_surface *dst_surface, const RECT *
dst_surface->palette, fill_colour, &colour))
return DDERR_INVALIDPARAMS;
wined3d_device_apply_stateblock(wined3d_device, ddraw->state);
ddraw_surface_get_draw_texture(dst_surface, dst_rect ? DDRAW_SURFACE_RW : DDRAW_SURFACE_WRITE);
return wined3d_device_context_clear_rendertarget_view(ddraw->immediate_context,
ddraw_surface_get_rendertarget_view(dst_surface),