From 4b6f6e1b3d50a972fa82ea90e1409f28eda26550 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 14 Oct 2003 14:49:39 +0000 Subject: minor fix in buffer_object_get_target() --- src/mesa/main/bufferobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index e47065415db..93a3066bf69 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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) -- cgit v1.2.3