projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b9544
)
mesa: replace _mesa_problem() with unreachable() in _mesa_light()
author
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 9 May 2017 02:36:35 +0000
(12:36 +1000)
committer
Timothy 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/light.c
b/src/mesa/main/light.c
index 87a06db309d0f5227cc274a9ee0db50b5f960127..245692a54c2e632e0fd0351cff58e21e39c45476 100644
(file)
--- 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)