projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bd692b
)
mesa: replace _mesa_problem() with unreachable() in mipmap.c
author
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 9 May 2017 02:46:48 +0000
(12:46 +1000)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 16 May 2017 02:25:50 +0000
(12:25 +1000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index 8745dd93be56233860c1f45ebbd944b32440881c..fc36d408f91baf9e7dd2edc79855e4aa8c570c7a 100644
(file)
--- a/
src/mesa/main/mipmap.c
+++ b/
src/mesa/main/mipmap.c
@@
-757,7
+757,7
@@
do_row(GLenum datatype, GLuint comps, GLint srcWidth,
}
else {
-
_mesa_problem(NULL,
"bad format in do_row()");
+
unreachable(
"bad format in do_row()");
}
}
@@
-1401,7
+1401,7
@@
do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
}
else {
-
_mesa_problem(NULL,
"bad format in do_row()");
+
unreachable(
"bad format in do_row()");
}
}
@@
-1754,8
+1754,7
@@
_mesa_generate_mipmap_level(GLenum target,
/* no mipmaps, do nothing */
break;
default:
- _mesa_problem(NULL, "bad tex target in _mesa_generate_mipmaps");
- return;
+ unreachable("bad tex target in _mesa_generate_mipmaps");
}
}