diff options
| author | Dave Parks <davep@lindenlab.com> | 2023-04-06 13:21:25 -0500 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2023-04-06 13:21:25 -0500 | 
| commit | bb79718c8f0050569c80a1bfe4dd428321706d1a (patch) | |
| tree | 7cf588c843e8a9e17629b77bb4903c97a3f346fd /indra/llrender | |
| parent | 31f8fb79513ba6d1220aac13a5db110a7e4104da (diff) | |
SL-19538 Followup -- scrub all possible sources of NaNs, make dynamic exposure controls not persist, limit exposure range, and do a debug gl pass.
Diffstat (limited to 'indra/llrender')
| -rw-r--r-- | indra/llrender/llgl.cpp | 24 | 
1 files changed, 20 insertions, 4 deletions
| diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index c08c576531..303edddfaf 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -86,12 +86,27 @@ void APIENTRY gl_debug_callback(GLenum source,                                  const GLchar* message,                                  GLvoid* userParam)  { -    if (severity != GL_DEBUG_SEVERITY_HIGH  //&& -        //severity != GL_DEBUG_SEVERITY_MEDIUM && -        //severity != GL_DEBUG_SEVERITY_LOW +    /*if (severity != GL_DEBUG_SEVERITY_HIGH && +        severity != GL_DEBUG_SEVERITY_MEDIUM && +        severity != GL_DEBUG_SEVERITY_LOW          )      { //suppress out-of-spec messages sent by nvidia driver (mostly vertexbuffer hints)          return; +    }*/ + +    // list of messages to suppress +    const char* suppress[] = +    { +        "Buffer detailed info:", +        "Program undefined behavior warning: The current GL state uses a sampler (0) that has depth comparisons enabled" +    }; + +    for (const char* msg : suppress) +    { +        if (strncmp(msg, message, strlen(msg)) == 0) +        { +            return; +        }      }      if (severity == GL_DEBUG_SEVERITY_HIGH) @@ -133,7 +148,8 @@ void APIENTRY gl_debug_callback(GLenum source,          glGetBufferParameteriv(GL_UNIFORM_BUFFER, GL_BUFFER_SIZE, &ubo_size);          glGetBufferParameteriv(GL_UNIFORM_BUFFER, GL_BUFFER_IMMUTABLE_STORAGE, &ubo_immutable);      } -    //if (severity == GL_DEBUG_SEVERITY_HIGH) +     +    if (severity == GL_DEBUG_SEVERITY_HIGH)      {          LL_ERRS() << "Halting on GL Error" << LL_ENDL;      } | 
