[Mesa-dev] [Bug 93053] GL_PROGRAM_BINARY_LENGTH always reports 0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 20 22:35:50 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=93053

--- Comment #1 from Dale Weiler <weilercdale at gmail.com> ---
A minor quick fix may look something like this:

>> size_t size = 0;

>> case GL_PROGRAM_BINARY_LENGTH:
>>     free(mesa_program_serialize(shProg, &size));
>>     *params = size;
>>     return;

Though to be fair, mesa_program_serialize should have an option to query
just the size without allocating memory (using blob.position())

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151121/edd0b37c/attachment.html>


More information about the mesa-dev mailing list