summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-20 11:41:31 +0200
committerSamuel Pitoiset <[email protected]>2017-08-02 12:54:31 +0200
commit1722c2498ff8c403c1f47a31f0ee2a036310b59b (patch)
tree97d7d4c0b51bf9700089642212a02b1a8a3577dd /src/mesa/main/shaderapi.c
parentfb3287804fe51c55d3c79c6ff673d51cdcb54142 (diff)
mesa: add KHR_no_error support to glLinkProgram()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 1c564d31704..6dd617be7e5 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1242,6 +1242,13 @@ link_program_error(struct gl_context *ctx, struct gl_shader_program *shProg)
}
+static void
+link_program_no_error(struct gl_context *ctx, struct gl_shader_program *shProg)
+{
+ link_program(ctx, shProg, true);
+}
+
+
void
_mesa_link_program(struct gl_context *ctx, struct gl_shader_program *shProg)
{
@@ -1703,6 +1710,17 @@ _mesa_IsShader(GLuint name)
void GLAPIENTRY
+_mesa_LinkProgram_no_error(GLuint programObj)
+{
+ GET_CURRENT_CONTEXT(ctx);
+
+ struct gl_shader_program *shProg =
+ _mesa_lookup_shader_program(ctx, programObj);
+ link_program_no_error(ctx, shProg);
+}
+
+
+void GLAPIENTRY
_mesa_LinkProgram(GLuint programObj)
{
GET_CURRENT_CONTEXT(ctx);