mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 23:09:05 +02:00
mesa: add KHR_no_error support to glDrawRangeElements*()
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
87cb44d9b0
commit
d0a26edc25
1 changed files with 10 additions and 3 deletions
|
|
@ -948,9 +948,16 @@ vbo_exec_DrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end,
|
|||
_mesa_enum_to_string(mode), start, end, count,
|
||||
_mesa_enum_to_string(type), indices, basevertex);
|
||||
|
||||
if (!_mesa_validate_DrawRangeElements(ctx, mode, start, end, count,
|
||||
type, indices))
|
||||
return;
|
||||
if (_mesa_is_no_error_enabled(ctx)) {
|
||||
FLUSH_CURRENT(ctx, 0);
|
||||
|
||||
if (ctx->NewState)
|
||||
_mesa_update_state(ctx);
|
||||
} else {
|
||||
if (!_mesa_validate_DrawRangeElements(ctx, mode, start, end, count,
|
||||
type, indices))
|
||||
return;
|
||||
}
|
||||
|
||||
if ((int) end + basevertex < 0 || start + basevertex >= max_element) {
|
||||
/* The application requested we draw using a range of indices that's
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue