summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-17 22:47:38 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commit789cc87063c0cbb20941053b54fcbe4862912a14 (patch)
treef81519d93886d4f482550f190fd6af6ba7b60ea1 /src/mesa
parent905ad0d1ddc5ae8440dce88d78c3bf54752615fd (diff)
mesa: add KHR_no_error support to glPatchParameteri()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/shaderapi.c8
-rw-r--r--src/mesa/main/shaderapi.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 84189f0719f..924423ee692 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -2348,6 +2348,14 @@ _mesa_CreateShaderProgramv(GLenum type, GLsizei count,
/**
* For GL_ARB_tessellation_shader
*/
+void GLAPIENTRY
+_mesa_PatchParameteri_no_error(GLenum pname, GLint value)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ ctx->TessCtrlProgram.patch_vertices = value;
+}
+
+
extern void GLAPIENTRY
_mesa_PatchParameteri(GLenum pname, GLint value)
{
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h
index b7ba7ab84a6..fad584506cb 100644
--- a/src/mesa/main/shaderapi.h
+++ b/src/mesa/main/shaderapi.h
@@ -305,6 +305,9 @@ _mesa_get_program_resourceiv(struct gl_shader_program *shProg,
GLint *params);
/* GL_ARB_tessellation_shader */
+void GLAPIENTRY
+_mesa_PatchParameteri_no_error(GLenum pname, GLint value);
+
extern void GLAPIENTRY
_mesa_PatchParameteri(GLenum pname, GLint value);