aboutsummaryrefslogtreecommitdiff
path: root/glslang/MachineIndependent/Intermediate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'glslang/MachineIndependent/Intermediate.cpp')
-rw-r--r--glslang/MachineIndependent/Intermediate.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/glslang/MachineIndependent/Intermediate.cpp b/glslang/MachineIndependent/Intermediate.cpp
index 6a43ef3e..e542f90c 100644
--- a/glslang/MachineIndependent/Intermediate.cpp
+++ b/glslang/MachineIndependent/Intermediate.cpp
@@ -352,7 +352,7 @@ TIntermTyped* TIntermediate::addIndex(TOperator op, TIntermTyped* base, TIntermT
TIntermTyped* TIntermediate::addUnaryMath(TOperator op, TIntermTyped* child,
const TSourceLoc& loc)
{
- if (child == 0)
+ if (child == nullptr)
return nullptr;
if (child->getType().getBasicType() == EbtBlock)
@@ -751,6 +751,11 @@ bool TIntermediate::buildConvertOp(TBasicType dst, TBasicType src, TOperator& ne
case EbtInt64: newOp = EOpConvInt64ToUint; break;
case EbtUint64: newOp = EOpConvUint64ToUint; break;
#endif
+ // For bindless texture type conversion, add a dummy convert op, just
+ // to generate a new TIntermTyped
+ // uvec2(any sampler type)
+ // uvec2(any image type)
+ case EbtSampler: newOp = EOpConvIntToUint; break;
default:
return false;
}