[PATCH] Without this patch only nvidia people can enjoy GLSL which is not what we want ..
Roderick Colenbrander
thunderbird2k at gmx.net
Fri Nov 2 19:04:36 CDT 2007
---
dlls/wined3d/directx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index ce14eef..55b40e9 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;
--
1.5.1.3
--========GMX258421194045079678593--
More information about the wine-patches
mailing list