0 Replies Latest reply on Oct 22, 2013 2:59 AM by zack

    GLSL - shader compile error under linux

    zack

      I got a compile error under linux:

      Geometry shader failed to compile with the following errors:

      ERROR: 0:21: error(#149) Cannot apply dot operator to an array "."

      ERROR: 0:21: error(#149) Cannot apply dot operator to an array "."

      ERROR: 0:21: error(#202) No matching overloaded function found: normalize

      WARNING: 0:21: warning(#402) Implicit truncation of vector from size: 1 to size: 3

      ERROR: 0:23: error(#149) Cannot apply dot operator to an array "."

      ERROR: 0:23: error(#162) Wrong operand types: no operation "*" exists that takes a left-hand operand of type "in 4-component vector of vec4" and a right operand of type "in array of  ([8])" (or there is no acceptable conversion)

      ERROR: 0:27: error(#149) Cannot apply dot operator to an array "."

      ERROR: 0:27: error(#149) Cannot apply dot operator to an array "."

      ERROR: 0:27: error(#202) No matching overloaded function found: normalize

      WARNING: 0:27: warning(#402) Implicit truncation of vector from size: 1 to size: 3

      ERROR: 0:29: error(#149) Cannot apply dot operator to an array "."

      ERROR: 0:29: error(#162) Wrong operand types: no operation "*" exists that takes a left-hand operand of type "in 4-component vector of vec4" and a right operand of type "in array of  ([8])" (or there is no acceptable conversion)

      ERROR: 0:49: error(#202) No matching overloaded function found: calculateLighting

      WARNING: 0:47: warning(#402) Implicit truncation of vector from size: 1 to size: 4

      ERROR: 0:53: error(#202) No matching overloaded function found: calculateLighting

      WARNING: 0:51: warning(#402) Implicit truncation of vector from size: 1 to size: 4

      ERROR: error(#273) 12 compilation errors.  No code generated

       

      Here the shader code

      http://pastebin.com/K9bAhxJL

       

      The shader compiles find with older ATI cards

      Can anybody tell me what the problem is?

       

      OS:RedHat 6.4

      glxinfo:

      OpenGL vendor string: Advanced Micro Devices, Inc.

      OpenGL renderer string: AMD Radeon HD 7900 Series

      OpenGL version string: 4.2.12217 Compatibility Profile Context 12.104

      OpenGL shading language version string: 4.20

       

      The shader is in compatibility to support the oldest possible card.