Results 1 to 4 of 4

Thread: Firefox Minefield Error/warning message: not well-formed

  1. #1

    Firefox Minefield Error/warning message: not well-formed

    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
    Code :
    // 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:
    Code :
    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.

  2. #2
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Firefox Minefield Error/warning message: not well-formed

    Sounds like the problem is with whatever code is just above there...what's the previous thing in that shader?

  3. #3
    Junior Member
    Join Date
    May 2011
    Posts
    1

    Re: Firefox Minefield Error/warning message: not well-formed

    I have the latest version of Firefox but am not sure what add-ins I should be using.
    Some advice to aa newbee please....

  4. #4
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Firefox Minefield Error/warning message: not well-formed

    I still think it's whatever code comes BEFORE the bit you quoted.

Similar Threads

  1. how to fixed this warning message
    By wycwang in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 01-02-2008, 11:10 PM
  2. a compile error message from PowerVR SDK
    By wycwang in forum OpenVG and VGU
    Replies: 0
    Last Post: 12-18-2007, 06:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •