mesa: replace _mesa_problem() with unreachable() in _mesa_light()

All drivers but the old nouveau dri driver return after this anyway.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
Timothy Arceri 2017-05-09 12:36:35 +10:00
parent 59b9544fa7
commit 4c1664ff08
1 changed files with 1 additions and 2 deletions

View 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)