From a42e7c9172f1c41dd15da739274cb83a827c31a3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 3 Oct 2002 23:27:22 +0000 Subject: record GL_INVALID_VALUE in glVertexAttrib*NV() if index > 15 --- src/mesa/tnl/t_imm_api.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c index f5a977b600..7aea94c3fa 100644 --- a/src/mesa/tnl/t_imm_api.c +++ b/src/mesa/tnl/t_imm_api.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_api.c,v 1.31 2002/09/03 18:05:52 brianp Exp $ */ +/* $Id: t_imm_api.c,v 1.32 2002/10/03 23:27:22 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -375,6 +375,7 @@ void _tnl_End(void) { GET_CURRENT_CONTEXT(ctx); + _tnl_end( ctx ); /* Need to keep save primitive uptodate in COMPILE and @@ -1150,6 +1151,10 @@ _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w _tnl_flush_immediate( NULL, IM ); } } + else { + GET_CURRENT_CONTEXT(ctx); + _mesa_error(ctx, GL_INVALID_VALUE, "glVertexAttribNV(index > 15)"); + } } static void @@ -1167,6 +1172,10 @@ _tnl_VertexAttrib4fvNV( GLuint index, const GLfloat *v ) _tnl_flush_immediate( NULL, IM ); } } + else { + GET_CURRENT_CONTEXT(ctx); + _mesa_error(ctx, GL_INVALID_VALUE, "glVertexAttribNV(index > 15)"); + } } -- cgit v1.2.3