diff options
| author | simon_linden <none@none> | 2013-09-19 15:30:34 -0700 | 
|---|---|---|
| committer | simon_linden <none@none> | 2013-09-19 15:30:34 -0700 | 
| commit | d3625d0b672d59b0164e1b4615edbb9550912ec6 (patch) | |
| tree | 292f86a4e1dc65d57faee094f5365bf72a240846 /indra/llrender/llgl.cpp | |
| parent | 8fa463113c19682a64988d2f8c527ef5e5dd156c (diff) | |
| parent | 95e34d86b9d86b3b3c7d3c39620e35b06f8fa9cf (diff) | |
Merge downstream code
Diffstat (limited to 'indra/llrender/llgl.cpp')
| -rwxr-xr-x | indra/llrender/llgl.cpp | 40 | 
1 files changed, 20 insertions, 20 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 00de61a8cc..acfb3c085a 100755 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -73,7 +73,6 @@ std::ofstream gFailLog;  #define APIENTRY  #endif -  void APIENTRY gl_debug_callback(GLenum source,                                  GLenum type,                                  GLuint id, @@ -84,24 +83,24 @@ void APIENTRY gl_debug_callback(GLenum source,  {  	if (gGLDebugLoggingEnabled)  	{ -		if (severity == GL_DEBUG_SEVERITY_HIGH_ARB) -		{ -			llwarns << "----- GL ERROR --------" << llendl; -		} -		else -		{ -			llwarns << "----- GL WARNING -------" << llendl; -		} -		llwarns << "Type: " << std::hex << type << llendl; -		llwarns << "ID: " << std::hex << id << llendl; -		llwarns << "Severity: " << std::hex << severity << llendl; -		llwarns << "Message: " << message << llendl; -		llwarns << "-----------------------" << llendl; -		if (severity == GL_DEBUG_SEVERITY_HIGH_ARB) -		{ -			llerrs << "Halting on GL Error" << llendl; -		} +	if (severity == GL_DEBUG_SEVERITY_HIGH_ARB) +	{ +		llwarns << "----- GL ERROR --------" << llendl; +	} +	else +	{ +		llwarns << "----- GL WARNING -------" << llendl;  	} +	llwarns << "Type: " << std::hex << type << llendl; +	llwarns << "ID: " << std::hex << id << llendl; +	llwarns << "Severity: " << std::hex << severity << llendl; +	llwarns << "Message: " << message << llendl; +	llwarns << "-----------------------" << llendl; +	if (severity == GL_DEBUG_SEVERITY_HIGH_ARB) +	{ +		llerrs << "Halting on GL Error" << llendl; +	} +}  }  #endif @@ -653,7 +652,8 @@ bool LLGLManager::initGL()  		}  #if LL_DARWIN  		else if ((mGLRenderer.find("9400M") != std::string::npos) -			  || (mGLRenderer.find("9600M") != std::string::npos)) +			  || (mGLRenderer.find("9600M") != std::string::npos) +			  || (mGLRenderer.find("9800M") != std::string::npos))  		{  			mIsMobileGF = TRUE;  		} @@ -751,7 +751,7 @@ bool LLGLManager::initGL()  #if LL_WINDOWS  	if (mHasDebugOutput && gDebugGL)  	{ //setup debug output callback -		glDebugMessageControlARB(GL_DONT_CARE, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB, GL_DEBUG_SEVERITY_LOW_ARB, 0, NULL, GL_TRUE); +		//glDebugMessageControlARB(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_LOW_ARB, 0, NULL, GL_TRUE);  		glDebugMessageCallbackARB((GLDEBUGPROCARB) gl_debug_callback, NULL);  		glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);  	}  | 
