[Mesa-dev] [PATCH] glcpp: initializes version to -1

Juan A. Suarez Romero jasuarez at igalia.com
Tue Nov 8 12:35:14 UTC 2016


On Sat, 2016-11-05 at 10:48 +0100, Karol Herbst wrote:
> "#version 0512": 0:1(10): error: GLSL 3.30 is not supported.
> Supported
> versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES
> 
> so the issue with this would be, that "0512" is parsed as 3.30, which
> isn't right either, but the current master version does the same. \o/
> new bug found


Doing a quick check, not sure if this is a bug... 0512 is interpreted
in octal format, which in decimal is 330. Same for 0130, which is 88 in
decimal.


So unless we want to force all the values to be read as decimal, I
woulnd't say it is a bug.


	J.A.



More information about the mesa-dev mailing list