Mesa (master): vbo: fix error parameter

Brian Paul brianp at kemper.freedesktop.org
Wed Mar 2 08:13:05 PST 2011


Module: Mesa
Branch: master
Commit: 69c6e21ceb6c2eb0c4b0fae0228027d665027b4e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69c6e21ceb6c2eb0c4b0fae0228027d665027b4e

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Mar  1 19:11:44 2011 -0700

vbo: fix error parameter

Spotted by Ian.

---

 src/mesa/vbo/vbo_save_api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index fc5f60e..836c76f 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -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



More information about the mesa-commit mailing list