From: Paul Berry <stereotype...@gmail.com> Previously we recorded just the GLSL version (or the max version, if GLSL 1.10 and GLSL 1.20 programs were linked together).
Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> --- src/glsl/linker.cpp | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 1bae043..d74911f 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2465,6 +2465,7 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) } prog->Version = max_version; + prog->IsEsProg = is_es_prog; for (unsigned int i = 0; i < MESA_SHADER_TYPES; i++) { if (prog->_LinkedShaders[i] != NULL) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index f364ae1..4e5be1f 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2387,6 +2387,7 @@ struct gl_shader_program GLchar *InfoLog; unsigned Version; /**< GLSL version used for linking */ + GLboolean IsEsProg; /**< True if this program uses GLSL ES */ /** * Per-stage shaders resulting from the first stage of linking. -- 1.7.11.7 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev