On 04/09/2013 09:01 PM, Paul Berry wrote:
The comment above glsl_type::name claimed that it could sometimes be
NULL. This was wrong--it is never NULL. Many error handling paths
would segfault if it were.
Fix the comment and add assertions to validate that it really is never
NULL.
---
src/glsl/glsl_types.cpp | 4 ++++
src/glsl/glsl_types.h | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
I could've sworn I've actually seen it be NULL for anonymous structures.
What do those use? ""?
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev