From 6f6c5a1ad7c952d6411d0a327b6f83f67d7388b0 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 19 Jul 2017 09:40:49 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glPrimitiveRestartIndex() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/GL3x.xml | 2 +- src/mesa/main/varray.c | 8 ++++++++ src/mesa/main/varray.h | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml index 7c86e8fc51a..e55b5bbe65e 100644 --- a/src/mapi/glapi/gen/GL3x.xml +++ b/src/mapi/glapi/gen/GL3x.xml @@ -563,7 +563,7 @@ - + diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 6aa4c72bdd1..99347244891 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1936,6 +1936,14 @@ primitive_restart_index(struct gl_context *ctx, GLuint index) /** * GL_NV_primitive_restart and GL 3.1 */ +void GLAPIENTRY +_mesa_PrimitiveRestartIndex_no_error(GLuint index) +{ + GET_CURRENT_CONTEXT(ctx); + primitive_restart_index(ctx, index); +} + + void GLAPIENTRY _mesa_PrimitiveRestartIndex(GLuint index) { diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 182fb544f69..730f7cf3588 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -351,6 +351,9 @@ _mesa_DrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, extern void GLAPIENTRY _mesa_DrawTransformFeedback(GLenum mode, GLuint name); +void GLAPIENTRY +_mesa_PrimitiveRestartIndex_no_error(GLuint index); + extern void GLAPIENTRY _mesa_PrimitiveRestartIndex(GLuint index); -- 2.30.2