projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa: add storageSamples parameter to renderbuffer functions
[mesa.git]
/
src
/
mesa
/
main
/
pack.c
diff --git
a/src/mesa/main/pack.c
b/src/mesa/main/pack.c
index 760c46afe74ea18d6ff740da9a082b0eb05b05b8..64ad115f8b5a25d6c9427e4279d81695aae2dff0 100644
(file)
--- a/
src/mesa/main/pack.c
+++ b/
src/mesa/main/pack.c
@@
-42,6
+42,7
@@
#endif
#endif
+#include "errors.h"
#include "glheader.h"
#include "enums.h"
#include "image.h"
#include "glheader.h"
#include "enums.h"
#include "image.h"
@@
-460,8
+461,7
@@
extract_uint_indexes(GLuint n, GLuint indexes[],
break;
default:
break;
default:
- _mesa_problem(NULL, "bad srcType in extract_uint_indexes");
- return;
+ unreachable("bad srcType in extract_uint_indexes");
}
}
}
}
@@
-585,7
+585,7
@@
_mesa_unpack_stencil_span( struct gl_context *ctx, GLuint n,
}
break;
default:
}
break;
default:
-
_mesa_problem(ctx,
"bad dstType in _mesa_unpack_stencil_span");
+
unreachable(
"bad dstType in _mesa_unpack_stencil_span");
}
free(indexes);
}
free(indexes);
@@
-732,7
+732,7
@@
_mesa_pack_stencil_span( struct gl_context *ctx, GLuint n,
}
break;
default:
}
break;
default:
-
_mesa_problem(ctx,
"bad type in _mesa_pack_index_span");
+
unreachable(
"bad type in _mesa_pack_index_span");
}
free(stencil);
}
free(stencil);
@@
-1123,8
+1123,7
@@
_mesa_pack_depth_span( struct gl_context *ctx, GLuint n, GLvoid *dest,
}
break;
default:
}
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);
}
free(depthCopy);