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 patch to take abs() of vertex z coordinate as FFP fog coordinate.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From 77f3334105cbefa51452f8d7ad68c7ba5b797837 Mon Sep 17 00:00:00 2001
|
||||
From: Joachim Priesner <joachim.priesner@web.de>
|
||||
Date: Fri, 14 Nov 2014 22:39:58 +0100
|
||||
Subject: wined3d: Set D3DPMISCCAPS_FOGVERTEXCLAMPED flag in get_device_caps
|
||||
(resend)
|
||||
|
||||
Wine clamps the oFog output of vertex shaders. Tests for the flag follow
|
||||
in the second part of this patch.
|
||||
---
|
||||
dlls/wined3d/directx.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
|
||||
index 794496b..d31202a 100644
|
||||
--- a/dlls/wined3d/directx.c
|
||||
+++ b/dlls/wined3d/directx.c
|
||||
@@ -4165,12 +4165,12 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
|
||||
WINED3DPMISCCAPS_CLIPPLANESCALEDPOINTS |
|
||||
WINED3DPMISCCAPS_MASKZ |
|
||||
WINED3DPMISCCAPS_BLENDOP |
|
||||
+ WINED3DPMISCCAPS_FOGVERTEXCLAMPED |
|
||||
WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING;
|
||||
/* TODO:
|
||||
WINED3DPMISCCAPS_NULLREFERENCE
|
||||
WINED3DPMISCCAPS_FOGANDSPECULARALPHA
|
||||
- WINED3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS
|
||||
- WINED3DPMISCCAPS_FOGVERTEXCLAMPED */
|
||||
+ WINED3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS */
|
||||
|
||||
if (gl_info->supported[EXT_BLEND_EQUATION_SEPARATE] && gl_info->supported[EXT_BLEND_FUNC_SEPARATE])
|
||||
caps->PrimitiveMiscCaps |= WINED3DPMISCCAPS_SEPARATEALPHABLEND;
|
||||
--
|
||||
2.1.3
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
1
patches/wined3d-FFP_Fog/definition
Normal file
1
patches/wined3d-FFP_Fog/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: Take abs() of vertex z coordinate as FFP fog coordinate
|
||||
Reference in New Issue
Block a user