aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhenyao Mo <zmo@chromium.org>2013-09-23 14:57:04 -0400
committerJamie Madill <jmadill@chromium.org>2013-09-24 15:13:05 -0400
commitfa3c346fe9d832b163cfcff29bba5965bcaff08e (patch)
treedda1107a5dd2b10d11f6f139658feae64120a3bb /include
parenta5a1dfc6ec47c5e5aef6d871a48eef25a44dc407 (diff)
downloadangle-fa3c346fe9d832b163cfcff29bba5965bcaff08e.tar.gz
Build fix: not all types support precisions.
Currently Angle translator made the wrong assumption that all variables have a precision, and ASSERT that. BUG=276031 TBR=alokp@chromium.org Review URL: https://codereview.appspot.com/13113044
Diffstat (limited to 'include')
-rw-r--r--include/GLSLANG/ShaderLang.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/GLSLANG/ShaderLang.h b/include/GLSLANG/ShaderLang.h
index 7c763af1..a40a20a3 100644
--- a/include/GLSLANG/ShaderLang.h
+++ b/include/GLSLANG/ShaderLang.h
@@ -132,9 +132,10 @@ typedef enum {
} ShDataType;
typedef enum {
- SH_PRECISION_HIGHP = 0x5001,
- SH_PRECISION_MEDIUMP = 0x5002,
- SH_PRECISION_LOWP = 0x5003
+ SH_PRECISION_HIGHP = 0x5001,
+ SH_PRECISION_MEDIUMP = 0x5002,
+ SH_PRECISION_LOWP = 0x5003,
+ SH_PRECISION_UNDEFINED = 0
} ShPrecisionType;
typedef enum {