mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: add KHR_no_error support for glUniformBlockBinding()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
277135c1ed
commit
6a2c1e76f2
3 changed files with 16 additions and 1 deletions
|
|
@ -86,7 +86,7 @@
|
|||
<!-- Duplicated with GL3x.xml: BindBufferRange, BindBufferBase,
|
||||
GetIntegeri_v -->
|
||||
|
||||
<function name="UniformBlockBinding" es2="3.0">
|
||||
<function name="UniformBlockBinding" es2="3.0" no_error="true">
|
||||
<param name="program" type="GLuint" />
|
||||
<param name="uniformBlockIndex" type="GLuint" />
|
||||
<param name="uniformBlockBinding" type="GLuint" />
|
||||
|
|
|
|||
|
|
@ -1100,6 +1100,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,
|
||||
|
|
|
|||
|
|
@ -232,6 +232,11 @@ _mesa_GetUniformIndices(GLuint program,
|
|||
GLsizei uniformCount,
|
||||
const GLchar * const *uniformNames,
|
||||
GLuint *uniformIndices);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_UniformBlockBinding_no_error(GLuint program, GLuint uniformBlockIndex,
|
||||
GLuint uniformBlockBinding);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_UniformBlockBinding(GLuint program,
|
||||
GLuint uniformBlockIndex,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue