wined3d: Fix glsl detection bug.

This commit is contained in:
Roderick Colenbrander 2007-11-03 01:04:36 +01:00 committed by Alexandre Julliard
parent 58b030c270
commit c7683ee4a3
1 changed files with 1 additions and 1 deletions

View File

@ -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;