wined3d: Use >= for shader model checks in feature_level_from_caps().

Spotted by Matteo Bruni.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Józef Kucia 2018-09-14 14:00:56 +02:00 committed by Alexandre Julliard
parent 8b3a7c2581
commit 2b56410081
1 changed files with 4 additions and 4 deletions

View File

@ -1265,15 +1265,15 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_g
&& gl_info->supported[ARB_TEXTURE_COMPRESSION_BPTC])
return WINED3D_FEATURE_LEVEL_11;
if (shader_model == 4)
if (shader_model >= 4)
return WINED3D_FEATURE_LEVEL_10;
}
if (shader_model == 3)
if (shader_model >= 3)
return WINED3D_FEATURE_LEVEL_9_SM3;
if (shader_model == 2)
if (shader_model >= 2)
return WINED3D_FEATURE_LEVEL_9_SM2;
if (shader_model == 1)
if (shader_model >= 1)
return WINED3D_FEATURE_LEVEL_8;
if (fragment_caps->TextureOpCaps & WINED3DTEXOPCAPS_DOTPRODUCT3)