diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-04-10 19:41:09 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-04-10 19:41:09 +0100 |
commit | 5273254b79c17622d47b4326a729e0052151c57e (patch) | |
tree | 51a12c3e197097fd2f3b3d39c18148a3907f0a7c /wrappers | |
parent | a6989f8b312e50d75cb5ec1708601832b0158266 (diff) |
gltrace: Return sensible value for GL_MAX_DEBUG_MESSAGE_LENGTH when faking KHR_debug.
`apitrace trace glretrace ...` relies on it.
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/glcaps.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wrappers/glcaps.cpp b/wrappers/glcaps.cpp index e680fdd9..7e5f9850 100644 --- a/wrappers/glcaps.cpp +++ b/wrappers/glcaps.cpp @@ -268,6 +268,11 @@ _glGetIntegerv_override(GLenum pname, GLint *params) params[0] = 256; } break; + case GL_MAX_DEBUG_MESSAGE_LENGTH: + if (params[0] == 0) { + params[0] = 4096; + } + break; } } } |