diff --git a/indra/llrender/llglheaders.h b/indra/llrender/llglheaders.h index fa66b66e03e469009b64b40874cda28b126376e2..c773fd62bcef80abe5e4463e5a781355f2fc172a 100644 --- a/indra/llrender/llglheaders.h +++ b/indra/llrender/llglheaders.h @@ -54,7 +54,11 @@ #include "epoxy/glx.h" #endif +#if LL_DARWIN +#include <OpenGL/glu.h> +#else #include <GL/glu.h> +#endif #endif // LL_MESA diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index 0579a8242e39ce96f7b4a307bef791c8808b6abd..ab00a24419b26c31cc9e5b7442b95c48502e4a64 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -33,10 +33,6 @@ #include "llrender.h" #include "llvertexbuffer.h" -#if LL_DARWIN -#include "OpenGL/OpenGL.h" -#endif - // Lots of STL stuff in here, using namespace std to keep things more readable using std::vector; using std::pair; diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index 127f9ab27713ce7014370c08b32536c51d98ee9b..ae39aefeb899bb448c73cbaa8c9e75ea62261ec1 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -29,10 +29,6 @@ #include "llrender.h" #include "llfile.h" -#if LL_DARWIN -#include "OpenGL/OpenGL.h" -#endif - // Lots of STL stuff in here, using namespace std to keep things more readable using std::vector; using std::pair; @@ -1082,7 +1078,7 @@ BOOL LLShaderMgr::linkProgramObject(GLuint obj, BOOL suppress_errors) #if LL_DARWIN // For some reason this absolutely kills the frame rate when VBO's are enabled - if (0) + /*if (0) { // Force an evaluation of the gl state so the driver can tell if the shader will run in hardware or software // per Apple's suggestion @@ -1113,7 +1109,7 @@ BOOL LLShaderMgr::linkProgramObject(GLuint obj, BOOL suppress_errors) success = GL_FALSE; suppress_errors = FALSE; } - } + }*/ #else std::string log = get_program_log(obj);