summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniforms.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-26 15:09:04 +0200
committerSamuel Pitoiset <[email protected]>2017-06-28 10:25:13 +0200
commit6a2c1e76f2a51ec19306360c1ee6711487bde5cb (patch)
tree6d22afbc724bbf9b370fffd004542e895580e3d2 /src/mesa/main/uniforms.c
parent277135c1ed5328f8c890c3ea1e25ef4c604a8a09 (diff)
mesa: add KHR_no_error support for glUniformBlockBinding()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/uniforms.c')
-rw-r--r--src/mesa/main/uniforms.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
index ef57866d6dc..a71e0695b05 100644
--- a/src/mesa/main/uniforms.c
+++ b/src/mesa/main/uniforms.c
@@ -1101,6 +1101,16 @@ uniform_block_binding(struct gl_context *ctx, struct gl_shader_program *shProg,
}
void GLAPIENTRY
+_mesa_UniformBlockBinding_no_error(GLuint program, GLuint uniformBlockIndex,
+ GLuint uniformBlockBinding)
+{
+ GET_CURRENT_CONTEXT(ctx);
+
+ struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, program);
+ uniform_block_binding(ctx, shProg, uniformBlockIndex, uniformBlockBinding);
+}
+
+void GLAPIENTRY
_mesa_UniformBlockBinding(GLuint program,
GLuint uniformBlockIndex,
GLuint uniformBlockBinding)