浏览代码

Don't use GLU when compiling for GLES

rdb 15 年之前
父节点
当前提交
089f99659d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -5174,7 +5174,7 @@ report_errors_loop(int line, const char *source_file, GLenum error_code,
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 string CLP(GraphicsStateGuardian)::
 string CLP(GraphicsStateGuardian)::
 get_error_string(GLenum error_code) {
 get_error_string(GLenum error_code) {
-#ifdef HAVE_GLU
+#if defined(HAVE_GLU) && !defined(OPENGLES)
   const GLubyte *error_string = GLUP(ErrorString)(error_code);
   const GLubyte *error_string = GLUP(ErrorString)(error_code);
   if (error_string != (const GLubyte *)NULL) {
   if (error_string != (const GLubyte *)NULL) {
     return string((const char *)error_string);
     return string((const char *)error_string);