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:
@@ -86,7 +86,7 @@
|
|||||||
<!-- Duplicated with GL3x.xml: BindBufferRange, BindBufferBase,
|
<!-- Duplicated with GL3x.xml: BindBufferRange, BindBufferBase,
|
||||||
GetIntegeri_v -->
|
GetIntegeri_v -->
|
||||||
|
|
||||||
<function name="UniformBlockBinding" es2="3.0">
|
<function name="UniformBlockBinding" es2="3.0" no_error="true">
|
||||||
<param name="program" type="GLuint" />
|
<param name="program" type="GLuint" />
|
||||||
<param name="uniformBlockIndex" type="GLuint" />
|
<param name="uniformBlockIndex" type="GLuint" />
|
||||||
<param name="uniformBlockBinding" 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
|
void GLAPIENTRY
|
||||||
_mesa_UniformBlockBinding(GLuint program,
|
_mesa_UniformBlockBinding(GLuint program,
|
||||||
GLuint uniformBlockIndex,
|
GLuint uniformBlockIndex,
|
||||||
|
@@ -232,6 +232,11 @@ _mesa_GetUniformIndices(GLuint program,
|
|||||||
GLsizei uniformCount,
|
GLsizei uniformCount,
|
||||||
const GLchar * const *uniformNames,
|
const GLchar * const *uniformNames,
|
||||||
GLuint *uniformIndices);
|
GLuint *uniformIndices);
|
||||||
|
|
||||||
|
void GLAPIENTRY
|
||||||
|
_mesa_UniformBlockBinding_no_error(GLuint program, GLuint uniformBlockIndex,
|
||||||
|
GLuint uniformBlockBinding);
|
||||||
|
|
||||||
void GLAPIENTRY
|
void GLAPIENTRY
|
||||||
_mesa_UniformBlockBinding(GLuint program,
|
_mesa_UniformBlockBinding(GLuint program,
|
||||||
GLuint uniformBlockIndex,
|
GLuint uniformBlockIndex,
|
||||||
|
Reference in New Issue
Block a user