[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] frac or fract?



We still don't use the ANGLE validator on Linux x86-64 because of build system issues. See:
https://bugzilla.mozilla.org/show_bug.cgi?id=578877

Benoit

----- Original Message -----
> Under Minefield/Linux 64bit with nVidia hardware, GLSL happily accepts
> "frac(...)" instead of "fract(...)" for returning the fractional part
> of
> a number. I guess that's because nVidia's GLSL compiler is really its
> Cg compiler with a different front-end or something. ("frac(...)" is
> the correct name for this function in Cg).
> 
> It's kinda annoying because (having spent far too long programming in
> Cg) I find it hard to break the habit of typing "frac" - and since I
> habitually develop under Linux, I keep finding that my code breaks
> when
> I run it under Windows.
> 
> Shouldn't the validator (which I have turned on BTW) have rejected
> "frac" as an undefined function?
> 
> Meanwhile I'm resorting to:
> 
> #define frac fract
> 
> :-)
> 
> -- Steve
> 
> -----------------------------------------------------------
> You are currently subscribed to public_webgl@khronos.org.
> To unsubscribe, send an email to majordomo@khronos.org with
> the following command in the body of your email:
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: