mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fix compilation error with OpenGL ES
This commit is contained in:
parent
c299cba834
commit
26a8e60405
@ -967,11 +967,15 @@ glsl_compile_shader(GSG *gsg) {
|
|||||||
if (!_glsl_gshader) return false;
|
if (!_glsl_gshader) return false;
|
||||||
gsg->_glAttachShader(_glsl_program, _glsl_gshader);
|
gsg->_glAttachShader(_glsl_program, _glsl_gshader);
|
||||||
|
|
||||||
|
#ifdef OPENGLES
|
||||||
|
nassertr(false, false); // OpenGL ES has no geometry shaders.
|
||||||
|
#else
|
||||||
// Set the vertex output limit to the maximum
|
// Set the vertex output limit to the maximum
|
||||||
nassertr(gsg->_glProgramParameteri != NULL, false);
|
nassertr(gsg->_glProgramParameteri != NULL, false);
|
||||||
GLint max_vertices;
|
GLint max_vertices;
|
||||||
glGetIntegerv(GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT, &max_vertices);
|
glGetIntegerv(GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT, &max_vertices);
|
||||||
gsg->_glProgramParameteri(_glsl_program, GL_GEOMETRY_VERTICES_OUT_EXT, max_vertices);
|
gsg->_glProgramParameteri(_glsl_program, GL_GEOMETRY_VERTICES_OUT_EXT, max_vertices);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// There might be warnings. Only report them for one shader program.
|
// There might be warnings. Only report them for one shader program.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user