From e6e3c84e63ad7e10d76fef20d7526bcc7b29586c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Thu, 28 Jun 2018 14:03:41 +1000 Subject: [PATCH] wined3d: Dont blt textures on different devices Fixes: https://bugs.winehq.org/show_bug.cgi?id=45382 --- dlls/wined3d/texture.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index c316906..d54a648 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -3097,6 +3097,12 @@ HRESULT CDECL wined3d_texture_blt(struct wined3d_texture *dst_texture, unsigned return WINED3DERR_INVALIDCALL; } + if (dst_texture->resource.device != src_texture->resource.device) + { + ERR("Rejecting blit.\n"); + return WINED3DERR_INVALIDCALL; + } + wined3d_cs_emit_blt_sub_resource(dst_texture->resource.device->cs, &dst_texture->resource, dst_sub_resource_idx, &dst_box, &src_texture->resource, src_sub_resource_idx, &src_box, flags, fx, filter); -- 1.9.1