[Mesa-dev] glsl2 compiler regression

Thomas Jones thomas.jones at utoronto.ca
Wed Aug 11 13:25:46 PDT 2010


On 10-08-11 03:40 PM, Ian Romanick wrote:
> I think you overlooked the first error message: "Could not implicitly
> convert operands to arithmetic operator" :)  We've tried to prevent
> cascading error messages, but some cases still slip through.  The second
> message happens because the type of the expression 'gl_MultiTexCoord0*2'
> is "error", and "error"+"int" is invalid.  We should fix that.
>    
I wouldn't call "Could not implicitly convert operands to arithmetic 
operator" a great error message for this, I didn't miss it, I just had 
no idea what it was trying to tell me... I think it might be a good idea 
to add a hint in cases like this that you should add a cast (ie if you 
have "float" <operator> "int" suggest casting the int to float)


More information about the mesa-dev mailing list