mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:01:17 +00:00
wined3d: Use the supplied context in wined3d_device_context_blt().
Applications calling wined3d_device_context_resolve_sub_resource() on a deferred context would instead get this scheduled on the immediate context. Worse, because the original call was intended for a deferred context, we'd do this without taking the mutex required for immediate contexts, potentially corrupting the command stream.
This commit is contained in:
parent
00187d64f0
commit
b3b2a55994
|
@ -4168,8 +4168,8 @@ HRESULT CDECL wined3d_device_context_blt(struct wined3d_device_context *context,
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
wined3d_device_context_emit_blt_sub_resource(&dst_texture->resource.device->cs->c, &dst_texture->resource,
|
||||
dst_sub_resource_idx, &dst_box, &src_texture->resource, src_sub_resource_idx, &src_box, flags, fx, filter);
|
||||
wined3d_device_context_emit_blt_sub_resource(context, &dst_texture->resource, dst_sub_resource_idx,
|
||||
&dst_box, &src_texture->resource, src_sub_resource_idx, &src_box, flags, fx, filter);
|
||||
|
||||
if (dst_texture->dirty_regions)
|
||||
wined3d_texture_add_dirty_region(dst_texture, dst_sub_resource_idx, &dst_box);
|
||||
|
|
Loading…
Reference in a new issue