diff options
-rw-r--r-- | src/mesa/main/api_noop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_noop.c b/src/mesa/main/api_noop.c index f42f166ae31..af7e1f9ac70 100644 --- a/src/mesa/main/api_noop.c +++ b/src/mesa/main/api_noop.c @@ -575,7 +575,7 @@ void GLAPIENTRY _mesa_noop_Materialfv( GLenum face, GLenum pname, const GLfloat if (bitmask == 0) return; - switch (face) { + switch (pname) { case GL_SHININESS: nr = 1; break; case GL_COLOR_INDEXES: nr = 3; break; default: nr = 4 ; break; |