PDA

View Full Version : Firefox Minefield Error/warning message: not well-formed



pion
01-17-2011, 05:47 PM
In general, I notice that Firefox Minefield is much stricter than Chrome Canary when compiling my Javascript. Chrome Canary missed them. For example, it notifies me undeclared variables, assigning to a read-only property, etc.

I use the following comment on my shader


// Light structure
struct structPointLight {
vec4 position;
vec4 diffuse;
vec4 specular;
vec4 ambient;

float constant_attenuation;
float linear_attenuation;
float quadratic_attenuation;
};

Firefox Minefield issues error/warning message: not well-formed on the "// Light structure" on the Error Console.
Chrome Canary issues no warning on its console.

I then removed the "// Light structure" as the following:


struct structPointLight {
vec4 position;
vec4 diffuse;
vec4 specular;
vec4 ambient;

float constant_attenuation;
float linear_attenuation;
float quadratic_attenuation;
};

Firefox now issues an error on the "struct ". Chrome issues no error.

The program works just fine. I am just curious about the above error/warning.

Any pointer is appreciated.

Thanks in advance for your help.

SteveBaker
03-17-2011, 12:11 PM
Sounds like the problem is with whatever code is just above there...what's the previous thing in that shader?

optimizer
05-02-2011, 12:24 PM
I have the latest version of Firefox but am not sure what add-ins I should be using.
Some advice to aa newbee please....

SteveBaker
05-02-2011, 06:36 PM
I still think it's whatever code comes BEFORE the bit you quoted.