--- run.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/run.c b/run.c index de85665..2c2a810 100644 --- a/run.c +++ b/run.c @@ -80,6 +80,8 @@ get_shaders(const struct context_info *core, const struct context_info *compat, static const char *gs = "geometry shader]\n"; static const char *fs = "fragment "; static const char *vs = "vertex "; + static const char *tcs = "tessellation control shader]\n"; + static const char *tes = "tessellation evaluation shader]\n"; static const char *shder = "shader]\n"; static const char *program = "program]\n"; static const char *test = "test]\n"; @@ -169,6 +171,14 @@ get_shaders(const struct context_info *core, const struct context_info *compat, text += strlen(gs); shader[i].type = GL_GEOMETRY_SHADER; shader[i].text = text; + } else if (memcmp(text, tcs, strlen(tcs)) == 0) { + text += strlen(tcs); + shader[i].type = GL_TESS_CONTROL_SHADER; + shader[i].text = text; + } else if (memcmp(text, tes, strlen(tes)) == 0) { + text += strlen(tes); + shader[i].type = GL_TESS_EVALUATION_SHADER; + shader[i].text = text; } else if (memcmp(text, test, strlen(test)) == 0) { shader[i - 1].length = save_text + 1 - shader[i - 1].text; goto out; -- 2.4.10
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev