wined3d: Recognize cards that expose ARB_shader_texture_lod as DX10 capable even if they don't support EXT_gpu_shader4 (try 3)

Andrei Slăvoiu andrei.slavoiu at gmail.com
Wed May 28 18:33:57 CDT 2014


Drop the check for glsl_version. All wine shaders use #version 120 so it 
doesn't matter.

---
 dlls/wined3d/directx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------- next part --------------
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 224992d..49525ea 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1667,7 +1667,8 @@ static UINT d3d_level_from_gl_info(const struct wined3d_gl_info *gl_info)
     if (level == 8 && gl_info->supported[ARB_FRAGMENT_PROGRAM]
             && gl_info->supported[ARB_VERTEX_SHADER])
         level = 9;
-    if (level == 9 && gl_info->supported[EXT_GPU_SHADER4])
+    if (level == 9 && (gl_info->supported[EXT_GPU_SHADER4]
+            || gl_info->supported[ARB_SHADER_TEXTURE_LOD]))
         level = 10;
 
     return level;


More information about the wine-patches mailing list