[Mesa-dev] [PATCH 1/2] mesa: common/meta: avoid printing uninitialized bytes.
Eric Anholt
eric at anholt.net
Tue May 29 10:27:15 PDT 2012
On Sat, 26 May 2012 10:22:16 +0300, Oliver McFadden <oliver.mcfadden at linux.intel.com> wrote:
> Mesa 8.1-devel implementation error: meta program compile failed:
> ��
I think this is the wrong fix. From the GL 3.0 spec:
"These commands return the info log string in infoLog. This string
will be null terminated. The actual number of characters written
into infoLog, excluding the null terminator, is returned in
length... The number of characters in the info log can be queried
with GetShaderiv or GetProgramiv with INFO LOG LENGTH."
So you just need to malloc size + 1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120529/52418317/attachment.pgp>
More information about the mesa-dev
mailing list