[Mesa-dev] [PATCH 17/26] glsl: Record in gl_shader_program whether the program uses GLSL ES.

Eric Anholt eric at anholt.net
Fri Nov 30 15:20:08 PST 2012


Ian Romanick <idr at freedesktop.org> writes:

> From: Paul Berry <stereotype441 at 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.romanick at intel.com>
> ---
>  src/glsl/linker.cpp    | 1 +
>  src/mesa/main/mtypes.h | 1 +
>  2 files changed, 2 insertions(+)

> 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 */

I don't think I would ever type "Es" with a lowercase 's' on the first
try.  Am I alone?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121130/e551f79a/attachment.pgp>


More information about the mesa-dev mailing list