wined3d: Recognize cards that expose GLSL 1.30 as DX10 capable even if they don't support EXT_GPU_SHADER4.

oldstable
Andrei Slăvoiu 2014-05-23 01:23:30 +03:00 committed by Alexandre Julliard
parent 8c944b0da4
commit fbdf618251
1 changed files with 2 additions and 1 deletions

View File

@ -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->glsl_version >= MAKEDWORD_VERSION(1, 30)))
level = 10;
return level;