forked from wine-compholio/wine-staging
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wined3d-texture-blt-device patchset
- Loading branch information
1 parent
19db07f
commit 4e57013
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
patches/wined3d-texture-blt-device/0001-wined3d-Dont-blt-textures-on-different-devices.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fixes: [45382] Stop the Sting demo crashing | ||
|