Ian Romanick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> tom fogal wrote:
>> The appended GLSL fragment shader is giving me a syntax error using
>> 2ba98efdf6653a4cb885d576d2e6f349c69679d4 . A bit of experimentation
>> suggests it is the array of colors created. Does Mesa support:
>>
>> vec4 somearray[] = vec4[] (
>> vec4(0.0, 0.0, 0.0, 0.0)
>> );
>
> Brian did some work on array initialization syntax a few months ago, but
> there's always the possibility of bugs. My guess is that it only
> correctly works for arrays with constant values at global scope. I
> doubt this usage has gotten much testing.
I guess I overlooked the unsized [] syntax. For now you'd have to
write the declaration above as:
vec4[1] somearray = vec4[1] (
vec4(0.0, 0.0, 0.0, 0.0)
);
That should work. I'll try to fix the parser one of these days...
-Brian
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev