[Mesa-dev] [Bug 29622] New: glGetUniformLocation does not work between glNewList and glEndList
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Aug 17 13:13:41 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=29622
Summary: glGetUniformLocation does not work between glNewList
and glEndList
Product: Mesa
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: nbowler at draconx.ca
Calling glGetUniformLocation between glNewList and glEndList always returns 0,
even if the variable being requested does not exist in the program.
Occurs with at least swrast and i965. I tested both mesa 7.8.2 and git master.
Restructuring the program so that the glGetUniformLocation is called outside
of the list makes it work.
For example:
glNewList(1, GL_COMPILE_AND_EXECUTE);
var = glGetUniformLocation(program, "something");
/* var will now be zero, regardless of the program or "something" */
/* do other stuff */
glEndList();
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list