Mesa (gallium-0.2): progs: Fix isosurf.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Sat Jan 24 16:55:07 UTC 2009
Module: Mesa
Branch: gallium-0.2
Commit: efdb7799d31b33ce82f9fdedf43ae17bd68f5c84
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=efdb7799d31b33ce82f9fdedf43ae17bd68f5c84
Author: José Fonseca <jfonseca at vmware.com>
Date: Sat Jan 24 16:47:50 2009 +0000
progs: Fix isosurf.
---
progs/demos/isosurf.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/progs/demos/isosurf.c b/progs/demos/isosurf.c
index e2ff6be..393741c 100644
--- a/progs/demos/isosurf.c
+++ b/progs/demos/isosurf.c
@@ -1033,7 +1033,6 @@ static GLint Args(int argc, char **argv)
int main(int argc, char **argv)
{
GLenum type;
- char *extensions;
GLuint arg_mode = Args(argc, argv);
@@ -1052,19 +1051,18 @@ int main(int argc, char **argv)
glutInitDisplayMode(type);
if (glutCreateWindow("Isosurface") <= 0) {
- glewInit();
exit(0);
}
- /* Make sure server supports the vertex array extension */
- extensions = (char *) glGetString( GL_EXTENSIONS );
+ glewInit();
- if (!strstr( extensions, "GL_EXT_vertex_array" ))
+ /* Make sure server supports the vertex array extension */
+ if (!GLEW_EXT_vertex_array)
{
printf("Vertex arrays not supported by this renderer\n");
allowed &= ~(LOCKED|DRAW_ARRAYS|DRAW_ELTS|ARRAY_ELT);
}
- else if (!strstr( extensions, "GL_EXT_compiled_vertex_array" ))
+ else if (!GLEW_EXT_compiled_vertex_array)
{
printf("Compiled vertex arrays not supported by this renderer\n");
allowed &= ~LOCKED;
More information about the mesa-commit
mailing list