From cef9471ab205c79c01aa375437f9994976b6098c Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 16 Oct 2003 17:56:46 +0000 Subject: Add missing GL_FRONT_AND_BACK case. --- src/mesa/main/dlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 326e6b397b..ef5f6b1bfe 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -4803,6 +4803,7 @@ static void save_Materialfv( GLenum face, GLenum pname, const GLfloat *param ) switch (face) { case GL_BACK: case GL_FRONT: + case GL_FRONT_AND_BACK: break; default: _mesa_compile_error( ctx, GL_INVALID_ENUM, "material(face)" ); @@ -4898,7 +4899,7 @@ static void save_End( void ) { GET_CURRENT_CONTEXT(ctx); SAVE_FLUSH_VERTICES( ctx ); - ALLOC_INSTRUCTION( ctx, OPCODE_END, 0 ); + (void) ALLOC_INSTRUCTION( ctx, OPCODE_END, 0 ); ctx->Driver.CurrentSavePrimitive = PRIM_OUTSIDE_BEGIN_END; if (ctx->ExecuteFlag) { (*ctx->Exec->End)( ); -- cgit v1.2.3