summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-05-09 12:36:35 +1000
committerTimothy Arceri <[email protected]>2017-05-16 12:25:49 +1000
commit4c1664ff086fcb9fdb7e463d78252d1fbe5e1d5e (patch)
treed7ea7b1fe11d5856d8379fa8cf07c2e9256a7b57 /src
parent59b9544fa751aa9559fe34f2e7af7b87d44440c9 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/light.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 87a06db309d..245692a54c2 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -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)