From ec17001cd4e17240039b9b96083ef9b831720107 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 28 Nov 2008 13:50:41 -0700 Subject: [PATCH] mesa: fix default switch case in append_token(), see bug 18734 --- src/mesa/shader/prog_statevars.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/shader/prog_statevars.c b/src/mesa/shader/prog_statevars.c index 1c333848ee8..615826b2106 100644 --- a/src/mesa/shader/prog_statevars.c +++ b/src/mesa/shader/prog_statevars.c @@ -605,7 +605,7 @@ append(char *dst, const char *src) /** - * Convert token 'k' to a string, append it only 'dst' string. + * Convert token 'k' to a string, append it onto 'dst' string. */ static void append_token(char *dst, gl_state_index k) @@ -780,7 +780,8 @@ append_token(char *dst, gl_state_index k) append(dst, "ShadowAmbient"); break; default: - ; + /* probably STATE_INTERNAL_DRIVER+i (driver private state) */ + append(dst, "driverState"); } } -- 2.30.2