diff options
author | Jordan Justen <[email protected]> | 2012-06-20 14:47:46 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-07-21 16:49:42 -0700 |
commit | 8c265cf5ef47ac8ae8565456d8ac023d6c847d57 (patch) | |
tree | 384b930a71b0d79cdf4cb7c33c656abc38c0db96 /src/mesa/main/pack_tmp.h | |
parent | 9ad8f431b2a47060bf05517246ab0fa8d249c800 (diff) |
mesa pack: use _mesa_problem instead of assert
If the pack type is not supported, use _mesa_problem
rather than asserting.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/pack_tmp.h')
-rw-r--r-- | src/mesa/main/pack_tmp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/main/pack_tmp.h b/src/mesa/main/pack_tmp.h index 83b65572998..0d4eb387d80 100644 --- a/src/mesa/main/pack_tmp.h +++ b/src/mesa/main/pack_tmp.h @@ -22,7 +22,8 @@ */ static void -FN_NAME(DST_TYPE *dst, +FN_NAME(struct gl_context *ctx, + DST_TYPE *dst, GLenum dstFormat, SRC_TYPE rgba[][4], int n) @@ -111,5 +112,11 @@ FN_NAME(DST_TYPE *dst, dst[i*2+1] = SRC_CONVERT(rgba[i][ACOMP]); } break; + + default: + _mesa_problem(ctx, + "Unsupported format (%s)", + _mesa_lookup_enum_by_nr(dstFormat)); + break; } } |