mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
mesa: add KHR_no_error support to glLinkProgram()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
fb3287804f
commit
1722c2498f
3 changed files with 22 additions and 1 deletions
|
|
@ -5492,7 +5492,7 @@
|
|||
<glx ignore="true"/>
|
||||
</function>
|
||||
|
||||
<function name="LinkProgram" es2="2.0">
|
||||
<function name="LinkProgram" es2="2.0" no_error="true">
|
||||
<param name="program" type="GLuint"/>
|
||||
<glx ignore="true"/>
|
||||
</function>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
@ -1702,6 +1709,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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -131,6 +131,9 @@ _mesa_IsProgram(GLuint name);
|
|||
extern GLboolean GLAPIENTRY
|
||||
_mesa_IsShader(GLuint name);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_LinkProgram_no_error(GLuint programObj);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_LinkProgram(GLuint programObj);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue