From d547ae9d290fb24f975bafcf462288d6f7bf3b1f Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Fri, 12 Oct 2018 13:18:56 +1100
Subject: [PATCH] wined3d: Remove check for Polygon offset clamping

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45975
---
 dlls/wined3d/adapter_gl.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/adapter_gl.c b/dlls/wined3d/adapter_gl.c
index 16a26b8..2af165d 100644
--- a/dlls/wined3d/adapter_gl.c
+++ b/dlls/wined3d/adapter_gl.c
@@ -1255,8 +1255,14 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_g
     shader_model = min(shader_model, max(shader_caps->hs_version, 4));
     shader_model = min(shader_model, max(shader_caps->ds_version, 4));
 
+    /*
+     * Legacy nVidia driver doesn't the the ARB_POLYGON_OFFSET_CLAMP support.
+     * There is an implied support for Depth Bias Clamping in DirectX 10 but no real documenation for either case
+     * On the same hardware, on windows, it supports DirectX 10 without the need for this extension, So
+     *  removing this check and users can deal with the fact they might have minor artifacts from time to time.
+     */
     if (gl_info->supported[WINED3D_GL_VERSION_3_2]
-            && gl_info->supported[ARB_POLYGON_OFFSET_CLAMP]
+/*            && gl_info->supported[ARB_POLYGON_OFFSET_CLAMP]*/
             && gl_info->supported[ARB_SAMPLER_OBJECTS])
     {
         if (shader_model >= 5
-- 
1.9.1

