diff options
author | Matt Turner <[email protected]> | 2015-03-11 18:14:28 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-03-13 10:42:38 -0700 |
commit | 8d3aa5926b73c67c7dbd4477b7177aaa00c533e5 (patch) | |
tree | 3a25670eb928400c68dab9b54ee69dc54c1837df | |
parent | dac2e7deaae2540645a6b485c7d1f47195689116 (diff) |
glsl: Expose built-in packing functions under GLSL 4.2.
ARB_shading_language_packing is part of GLSL 4.2, not 4.0 as I
mistakenly believed. The following functions are available only with
ARB_shading_language_packing, GLSL 4.2 (not GLSL 4.0), or ES 3.0:
- packSnorm2x16
- unpackSnorm2x16
- packHalf2x16
- unpackHalf2x16
Reviewed-by: Carl Worth <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/glsl/builtin_functions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 84bbdc2a4c6..c6075722c91 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -201,7 +201,7 @@ static bool shader_packing_or_es3(const _mesa_glsl_parse_state *state) { return state->ARB_shading_language_packing_enable || - state->is_version(400, 300); + state->is_version(420, 300); } static bool |