You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added wined3d-CompareInterpolationMode patchset
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From 76727eeb72952a3ded2b75917a15d76429efbaa3 Mon Sep 17 00:00:00 2001
|
||||
From: Matteo Bruni <mbruni@codeweavers.com>
|
||||
Date: Sun, 27 May 2018 11:22:33 +1000
|
||||
Subject: [PATCH] wined3d: Correctly compare Interpolation mode values
|
||||
|
||||
---
|
||||
dlls/wined3d/glsl_shader.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
|
||||
index 41bd1fd055..b54e2833ba 100644
|
||||
--- a/dlls/wined3d/glsl_shader.c
|
||||
+++ b/dlls/wined3d/glsl_shader.c
|
||||
@@ -8281,7 +8281,9 @@ static inline BOOL vs_args_equal(const struct vs_compile_args *stored, const str
|
||||
return FALSE;
|
||||
if (stored->next_shader_input_count != new->next_shader_input_count)
|
||||
return FALSE;
|
||||
- return stored->fog_src == new->fog_src;
|
||||
+ if (stored->fog_src != new->fog_src)
|
||||
+ return FALSE;
|
||||
+ return !memcmp(stored->interpolation_mode, new->interpolation_mode, sizeof(new->interpolation_mode));
|
||||
}
|
||||
|
||||
static GLuint find_glsl_vshader(const struct wined3d_context *context, struct shader_glsl_priv *priv,
|
||||
--
|
||||
2.17.0
|
||||
|
||||
2
patches/wined3d-CompareInterpolationMode/definition
Normal file
2
patches/wined3d-CompareInterpolationMode/definition
Normal file
@@ -0,0 +1,2 @@
|
||||
Fixes: [45127] Correctly compare Interpolation mode values
|
||||
|
||||
Reference in New Issue
Block a user