[Mesa-dev] [Bug 93053] GL_PROGRAM_BINARY_LENGTH always reports 0
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Nov 20 20:18:42 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=93053
Bug ID: 93053
Summary: GL_PROGRAM_BINARY_LENGTH always reports 0
Product: Mesa
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: medium
Component: Mesa core
Assignee: mesa-dev at lists.freedesktop.org
Reporter: weilercdale at gmail.com
QA Contact: mesa-dev at lists.freedesktop.org
shaderapi.c always stores 0 for GL_PROGRAM_BINARY_LENGTH when placing a
ProgramParameter call. This unfortunately is not a valid value to store there
unless GL_LINK_STATUS is GL_FALSE. The size returned by this call should be the
amount of bytes required to place a call to GetProgramBinary. There seems to be
no way in mesa to safely obtain a program binary without trying
GetProgramBinary in a loop, reallocating the buffer as necessary to store the
binary until it succeeds. Unfortunately there is no way to distinguish if the
function call is failing because of lack of memory or because of something
else.
--
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/f9669a14/attachment-0001.html>
More information about the mesa-dev
mailing list