From 256cb5c2f755281f86f1c2f86bb73b9f652b13e6 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 12 Jun 2012 10:34:07 +0000 Subject: [PATCH] Compile on OpenGL ES, which doesn't have geometry shaders or tesselation shaders --- panda/src/glstuff/glShaderContext_src.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/glstuff/glShaderContext_src.cxx b/panda/src/glstuff/glShaderContext_src.cxx index 6cabab6cc4..2345da9279 100755 --- a/panda/src/glstuff/glShaderContext_src.cxx +++ b/panda/src/glstuff/glShaderContext_src.cxx @@ -1151,6 +1151,7 @@ glsl_compile_entry_point(GSG *gsg, Shader::ShaderType type) { case Shader::ST_fragment: handle = gsg->_glCreateShader(GL_FRAGMENT_SHADER); break; +#ifndef OPENGLES case Shader::ST_geometry: if (gsg->get_supports_geometry_shaders()) { handle = gsg->_glCreateShader(GL_GEOMETRY_SHADER); @@ -1166,6 +1167,7 @@ glsl_compile_entry_point(GSG *gsg, Shader::ShaderType type) { handle = gsg->_glCreateShader(GL_TESS_EVALUATION_SHADER); } break; +#endif } if (!handle) { gsg->report_my_gl_errors();