mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Restore wined3d-WINED3D_TEXF_ANISOTROPIC patchset.
This commit is contained in:
parent
c896e5cb69
commit
cbf7f73313
@ -314,6 +314,7 @@ patch_enable_all ()
|
||||
enable_wined3d_SWVP_shaders="$1"
|
||||
enable_wined3d_Silence_FIXMEs="$1"
|
||||
enable_wined3d_WINED3DFMT_B8G8R8X8_UNORM="$1"
|
||||
enable_wined3d_WINED3D_TEXF_ANISOTROPIC="$1"
|
||||
enable_wined3d_mesa_texture_download="$1"
|
||||
enable_wined3d_unset_flip_gdi="$1"
|
||||
enable_wined3d_wined3d_guess_gl_vendor="$1"
|
||||
@ -1052,6 +1053,9 @@ patch_enable ()
|
||||
wined3d-WINED3DFMT_B8G8R8X8_UNORM)
|
||||
enable_wined3d_WINED3DFMT_B8G8R8X8_UNORM="$2"
|
||||
;;
|
||||
wined3d-WINED3D_TEXF_ANISOTROPIC)
|
||||
enable_wined3d_WINED3D_TEXF_ANISOTROPIC="$2"
|
||||
;;
|
||||
wined3d-mesa_texture_download)
|
||||
enable_wined3d_mesa_texture_download="$2"
|
||||
;;
|
||||
@ -6650,6 +6654,21 @@ if test "$enable_wined3d_WINED3DFMT_B8G8R8X8_UNORM" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset wined3d-WINED3D_TEXF_ANISOTROPIC
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#41929] wined3d: Multiple games need WINED3D_TEXF_ANISOTROPIC filter mode
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/wined3d/surface.c
|
||||
# |
|
||||
if test "$enable_wined3d_WINED3D_TEXF_ANISOTROPIC" -eq 1; then
|
||||
patch_apply wined3d-WINED3D_TEXF_ANISOTROPIC/0001-wined3d-Multiple-games-need-WINED3D_TEXF_ANISOTROPIC.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Józef Kucia", "wined3d: Multiple games need WINED3D_TEXF_ANISOTROPIC filter mode.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset wined3d-mesa_texture_download
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
@ -0,0 +1,40 @@
|
||||
From 34e2391838059de67d0161f37363c36bcd45b967 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B3zef=20Kucia?= <jkucia@codeweavers.com>
|
||||
Date: Mon, 17 Dec 2018 12:12:20 +1100
|
||||
Subject: [PATCH] wined3d: Multiple games need WINED3D_TEXF_ANISOTROPIC filter
|
||||
mode
|
||||
|
||||
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=41929
|
||||
---
|
||||
dlls/wined3d/surface.c | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
|
||||
index b7dd54cb61..eea81ee647 100644
|
||||
--- a/dlls/wined3d/surface.c
|
||||
+++ b/dlls/wined3d/surface.c
|
||||
@@ -167,16 +167,16 @@ void texture2d_blt_fbo(struct wined3d_device *device, struct wined3d_context *co
|
||||
|
||||
switch (filter)
|
||||
{
|
||||
- case WINED3D_TEXF_LINEAR:
|
||||
- gl_filter = scaled_resolve ? GL_SCALED_RESOLVE_NICEST_EXT : GL_LINEAR;
|
||||
+ case WINED3D_TEXF_NONE:
|
||||
+ case WINED3D_TEXF_POINT:
|
||||
+ gl_filter = scaled_resolve ? GL_SCALED_RESOLVE_FASTEST_EXT : GL_NEAREST;
|
||||
break;
|
||||
|
||||
default:
|
||||
FIXME("Unsupported filter mode %s (%#x).\n", debug_d3dtexturefiltertype(filter), filter);
|
||||
/* fall through */
|
||||
- case WINED3D_TEXF_NONE:
|
||||
- case WINED3D_TEXF_POINT:
|
||||
- gl_filter = scaled_resolve ? GL_SCALED_RESOLVE_FASTEST_EXT : GL_NEAREST;
|
||||
+ case WINED3D_TEXF_LINEAR:
|
||||
+ gl_filter = scaled_resolve ? GL_SCALED_RESOLVE_NICEST_EXT : GL_LINEAR;
|
||||
break;
|
||||
}
|
||||
|
||||
--
|
||||
2.24.1
|
||||
|
1
patches/wined3d-WINED3D_TEXF_ANISOTROPIC/definition
Normal file
1
patches/wined3d-WINED3D_TEXF_ANISOTROPIC/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [41929] wined3d: Multiple games need WINED3D_TEXF_ANISOTROPIC filter mode
|
Loading…
x
Reference in New Issue
Block a user