mesa: add KHR_no_error support to glProgramParameteri()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<param name="length" type="GLsizei"/>
|
||||
</function>
|
||||
|
||||
<function name="ProgramParameteri" es2="3.0">
|
||||
<function name="ProgramParameteri" es2="3.0" no_error="true">
|
||||
<param name="program" type="GLuint"/>
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="value" type="GLint"/>
|
||||
|
||||
@@ -2214,6 +2214,16 @@ invalid_value:
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ProgramParameteri_no_error(GLuint program, GLenum pname, GLint value)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, program);
|
||||
program_parameteri(ctx, shProg, pname, value, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ProgramParameteri(GLuint program, GLenum pname, GLint value)
|
||||
{
|
||||
|
||||
@@ -234,6 +234,9 @@ extern void GLAPIENTRY
|
||||
_mesa_ProgramBinary(GLuint program, GLenum binaryFormat,
|
||||
const GLvoid *binary, GLsizei length);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ProgramParameteri_no_error(GLuint program, GLenum pname, GLint value);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_ProgramParameteri(GLuint program, GLenum pname, GLint value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user