Commit 2b564100 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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

Spotted by Matteo Bruni. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 8b3a7c25
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment