diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2009-11-30 17:47:07 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2009-11-30 17:47:07 -0800 |
commit | 650e02003fbb5511ec758d993b7ec0a302ee2235 (patch) | |
tree | 96ff849518962856e51b2e3a26b78ba008b2f9ad /progs/util/shaderutil.c | |
parent | 270d36da146b899d39e08f830fe34b63833a3731 (diff) | |
parent | 587a52e95bbe96788e8b96b63f091bb3022fc048 (diff) |
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
Conflicts:
progs/util/shaderutil.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/main/version.h
Diffstat (limited to 'progs/util/shaderutil.c')
-rw-r--r-- | progs/util/shaderutil.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/progs/util/shaderutil.c b/progs/util/shaderutil.c index 4fb3199a19..2f44c388d8 100644 --- a/progs/util/shaderutil.c +++ b/progs/util/shaderutil.c @@ -25,7 +25,11 @@ GLboolean ShadersSupported(void) { const char *version = (const char *) glGetString(GL_VERSION); - if (version[0] == '2' && version[1] == '.') { + + /* NVIDIA binary drivers will return "3.0.0", and they clearly support + * shaders. + */ + if (version[0] >= '2' && version[1] == '.') { return GL_TRUE; } else if (glutExtensionSupported("GL_ARB_vertex_shader") |