mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From e6e3c84e63ad7e10d76fef20d7526bcc7b29586c Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?J=C3=B3zef=20Kucia?= <jkucia@codeweavers.com>
|
|
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
|
|
|