[PATCH 4/4] wined3d: Feature level 10.0 does not require independent blend functions.

Zebediah Figura z.figura12 at gmail.com
Sun Mar 15 23:42:09 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/wined3d/adapter_gl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/adapter_gl.c b/dlls/wined3d/adapter_gl.c
index 3a6d1bdd2b..2fd061b74a 100644
--- a/dlls/wined3d/adapter_gl.c
+++ b/dlls/wined3d/adapter_gl.c
@@ -1311,7 +1311,6 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_g
 
     if (gl_info->supported[WINED3D_GL_VERSION_3_2]
             && gl_info->supported[ARB_POLYGON_OFFSET_CLAMP]
-            && gl_info->supported[ARB_DRAW_BUFFERS_BLEND]
             && gl_info->supported[ARB_SAMPLER_OBJECTS])
     {
         if (shader_model >= 5
@@ -1321,7 +1320,8 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_g
 
         if (shader_model >= 4)
         {
-            if (gl_info->supported[ARB_TEXTURE_CUBE_MAP_ARRAY])
+            if (gl_info->supported[ARB_TEXTURE_CUBE_MAP_ARRAY]
+                    && gl_info->supported[ARB_DRAW_BUFFERS_BLEND])
                 return WINED3D_FEATURE_LEVEL_10_1;
             return WINED3D_FEATURE_LEVEL_10;
         }
-- 
2.25.1




More information about the wine-devel mailing list