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@lists.freedesktop.org ReportedBy: nbow...@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. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev