diff options
author | Timothy Arceri <[email protected]> | 2017-05-09 12:50:56 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-05-16 12:25:50 +1000 |
commit | 25bb02d7a0fbf8d2a5471954a519f65b900c4d26 (patch) | |
tree | 4a2ae60ed34264a2606d0d585ae81bb83537b080 /src/mesa/main/pack.c | |
parent | 51486d3369e3f6c6a1def1208eaf89f0324de44d (diff) |
mesa: replace _mesa_problem() with unreachable() in pack.c
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/main/pack.c')
-rw-r--r-- | src/mesa/main/pack.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 760c46afe74..94a6d285d8e 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -460,8 +460,7 @@ extract_uint_indexes(GLuint n, GLuint indexes[], break; default: - _mesa_problem(NULL, "bad srcType in extract_uint_indexes"); - return; + unreachable("bad srcType in extract_uint_indexes"); } } @@ -585,7 +584,7 @@ _mesa_unpack_stencil_span( struct gl_context *ctx, GLuint n, } break; default: - _mesa_problem(ctx, "bad dstType in _mesa_unpack_stencil_span"); + unreachable("bad dstType in _mesa_unpack_stencil_span"); } free(indexes); @@ -732,7 +731,7 @@ _mesa_pack_stencil_span( struct gl_context *ctx, GLuint n, } break; default: - _mesa_problem(ctx, "bad type in _mesa_pack_index_span"); + unreachable("bad type in _mesa_pack_index_span"); } free(stencil); @@ -1123,8 +1122,7 @@ _mesa_pack_depth_span( struct gl_context *ctx, GLuint n, GLvoid *dest, } break; default: - _mesa_problem(ctx, "bad type in _mesa_pack_depth_span (%s)", - _mesa_enum_to_string(dstType)); + unreachable("bad type in _mesa_pack_depth_span()"); } free(depthCopy); |