minor fix in buffer_object_get_target()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 14 Oct 2003 14:49:39 +0000 (14:49 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 14 Oct 2003 14:49:39 +0000 (14:49 +0000)
src/mesa/main/bufferobj.c

index e47065415dbac8421f75fc6d8f9fa94576104db6..93a3066bf69c81a8fef94f80ccfd277780133825 100644 (file)
@@ -62,7 +62,7 @@ buffer_object_get_target( GLcontext *ctx, GLenum target, const char * str )
          break;
       default:
          _mesa_error(ctx, GL_INVALID_ENUM, "gl%s(target)", str);
-         break;
+         return NULL;
    }
 
    if (bufObj->Name == 0)