From: Brian Paul Date: Tue, 14 Oct 2003 14:49:39 +0000 (+0000) Subject: minor fix in buffer_object_get_target() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b6f6e1b3d50a972fa82ea90e1409f28eda26550;p=mesa.git minor fix in buffer_object_get_target() --- 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)