]> git.cworth.org Git - apitrace/commit
gltrace: Prevent crash in _glGetDebugMessageLog_length (issue #140).
authorGregory Hainaut <gregory.hainaut@gmail.com>
Sun, 9 Jun 2013 08:06:28 +0000 (09:06 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 9 Jun 2013 08:06:28 +0000 (09:06 +0100)
commitddee48a95f1dbbc343496cb065af8c061963083e
tree48b4564033d8c9ce545ba331e2de84479e582517
parent4ba0ccdc517d1879caec2518df101fc2b9f7f4cb
gltrace: Prevent crash in _glGetDebugMessageLog_length (issue #140).

The function was not being called correctly from glGetDebugMessageLog
(and others).

From the spec the GL function:

  lengths is an array provided by the application and count is the
  maximum number of message that the driver will report into attribute
  array (ie lengths). That mean if the driver report 3 messages only
  lengths[0 to 2] are valid, others part are not valid and could have
  random data.
specs/glapi.py