From 91434424488d678517e3843ac528e31b967a3917 Mon Sep 17 00:00:00 2001 From: Alexander Szpakowski Date: Tue, 1 Jan 2013 04:39:33 -0400 Subject: [PATCH] Add internal support for tesselation control and evaluation shaders (not that they'll ever be used), now that GLee has definitions for them --- src/modules/graphics/opengl/ShaderEffect.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/ShaderEffect.cpp b/src/modules/graphics/opengl/ShaderEffect.cpp index 7cdba4307..d3df7ac92 100644 --- a/src/modules/graphics/opengl/ShaderEffect.cpp +++ b/src/modules/graphics/opengl/ShaderEffect.cpp @@ -97,8 +97,16 @@ GLuint ShaderEffect::createShader(const ShaderSource &source) shadertype = GL_VERTEX_SHADER; shadertypename = "vertex"; break; + case TYPE_TESSCONTROL: + shadertype = GL_TESS_CONTROL_SHADER; + shadertypename = "tesselation control"; + break; + case TYPE_TESSEVAL: + shadertype = GL_TESS_EVALUATION_SHADER; + shadertypename = "tesselation evaluation"; + break; case TYPE_GEOMETRY: - shadertype = GL_GEOMETRY_SHADER_ARB; + shadertype = GL_GEOMETRY_SHADER; shadertypename = "geometry"; break; case TYPE_FRAGMENT: