diff options
| author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-09-15 01:37:56 +0200 | 
|---|---|---|
| committer | Guru <alexandrgproductengine@lindenlab.com> | 2023-09-15 13:04:09 +0200 | 
| commit | f01d0dba2b9b1e0bb61a771ccabf17a12c92bfa0 (patch) | |
| tree | dc2536320cf70b296c9246fa89a015d3b2be0e7c /indra/llrender | |
| parent | b923f6f671b164dfbc0d3d6137076764b3f22666 (diff) | |
SL-20279 BugSplat Crash #1327171: gl_debug_callback(111)
Diffstat (limited to 'indra/llrender')
| -rw-r--r-- | indra/llrender/llgl.cpp | 14 | 
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index cfc9ce735d..44f7667d2c 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -93,6 +93,17 @@ void APIENTRY gl_debug_callback(GLenum source,          return;      } +    if (gGLManager.mIsDisabled && +        severity == GL_DEBUG_SEVERITY_HIGH_ARB && +        source == GL_DEBUG_SOURCE_API_ARB && +        type == GL_DEBUG_TYPE_ERROR_ARB && +        id == GL_INVALID_VALUE) +    { +        // Suppress messages about deleting already deleted objects called from LLViewerWindow::stopGL() +        // "GL_INVALID_VALUE error generated. Handle does not refer to an object generated by OpenGL." +        return; +    } +  	if (severity == GL_DEBUG_SEVERITY_HIGH_ARB)  	{  		LL_WARNS() << "----- GL ERROR --------" << LL_ENDL; @@ -106,7 +117,8 @@ void APIENTRY gl_debug_callback(GLenum source,  	LL_WARNS() << "Severity: " << std::hex << severity << LL_ENDL;  	LL_WARNS() << "Message: " << message << LL_ENDL;  	LL_WARNS() << "-----------------------" << LL_ENDL; -	if (severity == GL_DEBUG_SEVERITY_HIGH_ARB) +	// No needs to halt when is called from LLViewerWindow::stopGL() +	if (severity == GL_DEBUG_SEVERITY_HIGH_ARB && !gGLManager.mIsDisabled)  	{  		LL_ERRS() << "Halting on GL Error" << LL_ENDL;  	}  | 
