mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
mesa: add KHR_no_error support for glBindAttribLocation()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
34e5b39f37
commit
48400e0bd6
3 changed files with 15 additions and 1 deletions
|
|
@ -5301,7 +5301,7 @@
|
|||
<glx ignore="true"/>
|
||||
</function>
|
||||
|
||||
<function name="BindAttribLocation" es2="2.0">
|
||||
<function name="BindAttribLocation" es2="2.0" no_error="true">
|
||||
<param name="program" type="GLuint"/>
|
||||
<param name="index" type="GLuint"/>
|
||||
<param name="name" type="const GLchar *"/>
|
||||
|
|
|
|||
|
|
@ -96,6 +96,17 @@ bind_attrib_location(struct gl_context *ctx,
|
|||
*/
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindAttribLocation_no_error(GLuint program, GLuint index,
|
||||
const GLchar *name)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
struct gl_shader_program *const shProg =
|
||||
_mesa_lookup_shader_program(ctx, program);
|
||||
bind_attrib_location(ctx, shProg, index, name, true);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindAttribLocation(GLuint program, GLuint index,
|
||||
const GLchar *name)
|
||||
|
|
|
|||
|
|
@ -143,6 +143,9 @@ extern void GLAPIENTRY
|
|||
_mesa_ValidateProgram(GLuint);
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindAttribLocation_no_error(GLuint program, GLuint, const GLchar *);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_BindAttribLocation(GLuint program, GLuint, const GLchar *);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue