glsl: Record in gl_shader_program whether the program uses GLSL ES.
[mesa.git] / src / mesa / main / mtypes.h
index 66693a75215b1593f52440b8fc3a0e8b28dad5be..b353e7026f5f296f7d587ec0870c40747dcf5899 100644 (file)
@@ -2186,6 +2186,7 @@ struct gl_shader
    struct gl_sl_pragmas Pragmas;
 
    unsigned Version;       /**< GLSL version used for linking */
+   GLboolean IsES;         /**< True if this shader uses GLSL ES */
 
    /**
     * \name Sampler tracking
@@ -2388,6 +2389,7 @@ struct gl_shader_program
    GLchar *InfoLog;
 
    unsigned Version;       /**< GLSL version used for linking */
+   GLboolean IsES;         /**< True if this program uses GLSL ES */
 
    /**
     * Per-stage shaders resulting from the first stage of linking.