vbo: fix error parameter
authorBrian Paul <brianp@vmware.com>
Wed, 2 Mar 2011 02:11:44 +0000 (19:11 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Mar 2011 16:10:49 +0000 (09:10 -0700)
Spotted by Ian.

src/mesa/vbo/vbo_save_api.c

index fc5f60e..836c76f 100644 (file)
@@ -633,7 +633,7 @@ static void _save_reset_vertex( struct gl_context *ctx )
 
 
 
-#define ERROR(err)   _mesa_compile_error( ctx, GL_INVALID_ENUM, __FUNCTION__ );
+#define ERROR(err)   _mesa_compile_error( ctx, err, __FUNCTION__ );
 
 
 /* Only one size for each attribute may be active at once.  Eg. if