gl_error clean-ups
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: enable.c,v 1.40 2001/01/23 23:39:36 brianp Exp $ */
|
||||
/* $Id: enable.c,v 1.41 2001/02/13 23:51:34 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -239,7 +239,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state )
|
||||
break;
|
||||
case GL_HISTOGRAM:
|
||||
if (!ctx->Extensions.EXT_histogram) {
|
||||
gl_error(ctx, GL_INVALID_ENUM, "enable GL_HISTOGRAM");
|
||||
gl_error(ctx, GL_INVALID_ENUM, "glEnable(GL_HISTOGRAM)");
|
||||
return;
|
||||
}
|
||||
if (ctx->Pixel.HistogramEnabled == state)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id: matrix.c,v 1.31 2001/02/05 18:48:52 brianp Exp $ */
|
||||
/* $Id: matrix.c,v 1.32 2001/02/13 23:51:34 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -123,7 +123,7 @@ _mesa_Ortho( GLdouble left, GLdouble right,
|
||||
bottom == top ||
|
||||
nearval == farval)
|
||||
{
|
||||
gl_error( ctx, GL_INVALID_VALUE, "gl_Ortho" );
|
||||
gl_error( ctx, GL_INVALID_VALUE, "glOrtho" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id: t_imm_dlist.c,v 1.6 2001/01/29 20:47:39 keithw Exp $ */
|
||||
/* $Id: t_imm_dlist.c,v 1.7 2001/02/13 23:51:34 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -227,6 +227,7 @@ execute_compiled_cassette( GLcontext *ctx, void *data )
|
||||
if (ctx->Driver.CurrentExecPrimitive == GL_POLYGON+1)
|
||||
tnl->ReplayHardBeginEnd = 1;
|
||||
if (!tnl->ReplayHardBeginEnd) {
|
||||
/* XXX is this really an OpenGL error or an implementation problem? */
|
||||
gl_error(ctx, GL_INVALID_OPERATION, "hard replay");
|
||||
return;
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id: t_imm_fixup.c,v 1.5 2001/02/06 21:42:49 brianp Exp $ */
|
||||
/* $Id: t_imm_fixup.c,v 1.6 2001/02/13 23:51:34 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -572,7 +572,7 @@ void _tnl_fixup_compiled_cassette( GLcontext *ctx, struct immediate *IM )
|
||||
GLuint i;
|
||||
|
||||
if (IM->BeginState & VERT_ERROR_1)
|
||||
gl_error( ctx, GL_INVALID_OPERATION, "begin/end");
|
||||
gl_error( ctx, GL_INVALID_OPERATION, "glBegin/glEnd");
|
||||
|
||||
for (i = IM->Start ; i <= IM->Count ; i += IM->PrimitiveLength[i])
|
||||
if (IM->Flag[i] & (VERT_BEGIN|VERT_END_VB))
|
||||
@@ -596,7 +596,7 @@ void _tnl_fixup_compiled_cassette( GLcontext *ctx, struct immediate *IM )
|
||||
GLuint i;
|
||||
|
||||
if (IM->BeginState & VERT_ERROR_0)
|
||||
gl_error( ctx, GL_INVALID_OPERATION, "begin/end");
|
||||
gl_error( ctx, GL_INVALID_OPERATION, "glBegin/glEnd");
|
||||
|
||||
if (IM->CopyStart == IM->Start &&
|
||||
IM->Flag[IM->Start] & (VERT_END|VERT_END_VB))
|
||||
|
Reference in New Issue
Block a user