mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Call wined3d_texture_{inc, dec}ref() instead of wined3d_surface_{inc, dec}ref() in device_switch_onscreen_ds().
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bb70c73205
commit
9af54e742a
1 changed files with 2 additions and 2 deletions
|
@ -208,10 +208,10 @@ void device_switch_onscreen_ds(struct wined3d_device *device,
|
|||
surface_modify_ds_location(device->onscreen_depth_stencil, WINED3D_LOCATION_TEXTURE_RGB,
|
||||
device->onscreen_depth_stencil->ds_current_size.cx,
|
||||
device->onscreen_depth_stencil->ds_current_size.cy);
|
||||
wined3d_surface_decref(device->onscreen_depth_stencil);
|
||||
wined3d_texture_decref(device->onscreen_depth_stencil->container);
|
||||
}
|
||||
device->onscreen_depth_stencil = depth_stencil;
|
||||
wined3d_surface_incref(device->onscreen_depth_stencil);
|
||||
wined3d_texture_incref(device->onscreen_depth_stencil->container);
|
||||
}
|
||||
|
||||
static BOOL is_full_clear(const struct wined3d_surface *target, const RECT *draw_rect, const RECT *clear_rect)
|
||||
|
|
Loading…
Reference in a new issue