mesa: replace _mesa_problem() with unreachable() in _mesa_light()
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 9 May 2017 02:36:35 +0000 (12:36 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 16 May 2017 02:25:49 +0000 (12:25 +1000)
All drivers but the old nouveau dri driver return after this anyway.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/light.c

index 87a06db309d0f5227cc274a9ee0db50b5f960127..245692a54c2e632e0fd0351cff58e21e39c45476 100644 (file)
@@ -186,8 +186,7 @@ _mesa_light(struct gl_context *ctx, GLuint lnum, GLenum pname, const GLfloat *pa
       light->QuadraticAttenuation = params[0];
       break;
    default:
-      _mesa_problem(ctx, "Unexpected pname in _mesa_light()");
-      return;
+      unreachable("Unexpected pname in _mesa_light()");
    }
 
    if (ctx->Driver.Lightfv)