From c7683ee4a3bfb05498f60c10515add5375b66e9c Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Sat, 3 Nov 2007 01:04:36 +0100 Subject: [PATCH] wined3d: Fix glsl detection bug. --- dlls/wined3d/directx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index ce14eef0ef7..55b40e9f8da 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -338,7 +338,7 @@ static void select_shader_mode( /* Geforce4 cards support GLSL but for vertex shaders only. Further its reported GLSL caps are * wrong. This combined with the fact that glsl won't offer more features or performance, use ARB * shaders only on this card. */ - if(gl_info->vs_nv_version < VS_VERSION_20) + if(gl_info->vs_nv_version && gl_info->vs_nv_version < VS_VERSION_20) *vs_selected = SHADER_ARB; else *vs_selected = SHADER_GLSL;