summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2003-10-16 17:56:46 +0000
committerKeith Whitwell <[email protected]>2003-10-16 17:56:46 +0000
commitcef9471ab205c79c01aa375437f9994976b6098c (patch)
treec8ab71cfef6cadb41d652ba4f69fad7c7e2f6a55
parent8d8bb0679ccca28f40eefe0fa82f4ffb235692d5 (diff)
Add missing GL_FRONT_AND_BACK case.
-rw-r--r--src/mesa/main/dlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 326e6b397b9..ef5f6b1bfe9 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)( );