From: Samuel Pitoiset Date: Fri, 23 Jun 2017 15:01:22 +0000 (+0200) Subject: mesa: add KHR_no_error support for glAttachShader() and glAttachObjectARB() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=886399694021d013908106cdccab66fda275ae75;p=mesa.git mesa: add KHR_no_error support for glAttachShader() and glAttachObjectARB() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index d878a04ea09..94589464c5c 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5295,7 +5295,7 @@ - + @@ -7709,7 +7709,7 @@ - + diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 796e42ddf01..16d9f1e6486 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1345,6 +1345,13 @@ validate_program(struct gl_context *ctx, GLuint program) } +void GLAPIENTRY +_mesa_AttachObjectARB_no_error(GLhandleARB program, GLhandleARB shader) +{ + GET_CURRENT_CONTEXT(ctx); + attach_shader_no_error(ctx, program, shader); +} + void GLAPIENTRY _mesa_AttachObjectARB(GLhandleARB program, GLhandleARB shader) @@ -1354,6 +1361,14 @@ _mesa_AttachObjectARB(GLhandleARB program, GLhandleARB shader) } +void GLAPIENTRY +_mesa_AttachShader_no_error(GLuint program, GLuint shader) +{ + GET_CURRENT_CONTEXT(ctx); + attach_shader_no_error(ctx, program, shader); +} + + void GLAPIENTRY _mesa_AttachShader(GLuint program, GLuint shader) { diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h index 0a28185177d..3f6c0ff0cba 100644 --- a/src/mesa/main/shaderapi.h +++ b/src/mesa/main/shaderapi.h @@ -73,6 +73,10 @@ _mesa_longest_attribute_name_length(struct gl_shader_program *shProg); extern void _mesa_shader_write_subroutine_indices(struct gl_context *ctx, gl_shader_stage stage); + +void GLAPIENTRY +_mesa_AttachObjectARB_no_error(GLhandleARB, GLhandleARB); + extern void GLAPIENTRY _mesa_AttachObjectARB(GLhandleARB, GLhandleARB); @@ -154,7 +158,8 @@ _mesa_GetActiveAttrib(GLuint, GLuint, GLsizei, GLsizei *, GLint *, extern GLint GLAPIENTRY _mesa_GetAttribLocation(GLuint, const GLchar *); - +void GLAPIENTRY +_mesa_AttachShader_no_error(GLuint program, GLuint shader); extern void GLAPIENTRY _mesa_AttachShader(GLuint program, GLuint shader);