[Mesa-dev] [PATCH] glsl2: do not create __retval names (two underscores is a reserved name)

Aras Pranckevicius aras at unity3d.com
Mon Aug 9 01:22:16 PDT 2010


Attached patch changes __retval variable to _ret_val. According to GLSL
spec, "all identifiers containing two consecutive underscores are reserved
as possible future keywords". Windows Radeon 5xxx drivers actually complain
about this case.

Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100809/fbd260af/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: do-not-use-__retval-name.patch
Type: application/octet-stream
Size: 2000 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100809/fbd260af/attachment.obj>

More information about the mesa-dev mailing list