aboutsummaryrefslogtreecommitdiff
path: root/glslang/MachineIndependent/Intermediate.cpp
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-07-01 17:56:24 +0000
committerJohn Kessenich <cepheus@frii.com>2013-07-01 17:56:24 +0000
commit1fde51d3fbf32e9d383cf82b512e9efa2d9a75b7 (patch)
tree348a88aca83bbca5a2af117b804256d3bfb513d6 /glslang/MachineIndependent/Intermediate.cpp
parent6c0928d9249c3e0ba18deb6a82de68f97f9e5af5 (diff)
downloadglslang-1fde51d3fbf32e9d383cf82b512e9efa2d9a75b7.tar.gz
1) Don't propagate precision of built-in function arguments to return type when return type is bool (e.g., isnan).
2) Check an additional path for missing default precision qualification, except allow built-in declarations to pass the check. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22241 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'glslang/MachineIndependent/Intermediate.cpp')
-rw-r--r--glslang/MachineIndependent/Intermediate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/glslang/MachineIndependent/Intermediate.cpp b/glslang/MachineIndependent/Intermediate.cpp
index df807e8d..6a1e65f2 100644
--- a/glslang/MachineIndependent/Intermediate.cpp
+++ b/glslang/MachineIndependent/Intermediate.cpp
@@ -289,7 +289,7 @@ TIntermTyped* TIntermediate::addBuiltInFunctionCall(TOperator op, bool unary, TI
node->setType(returnType);
// propagate precision up from child
- if (returnType.getQualifier().precision == EpqNone && profile == EEsProfile)
+ if (profile == EEsProfile && returnType.getQualifier().precision == EpqNone && returnType.getBasicType() != EbtBool)
node->getQualifier().precision = child->getQualifier().precision;
// propagate precision down to child