summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/MachineIndependent/Intermediate.cpp')
-rwxr-xr-xsrc/mesa/shader/slang/MachineIndependent/Intermediate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp b/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp
index 759a290262..056fe17de0 100755
--- a/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp
+++ b/src/mesa/shader/slang/MachineIndependent/Intermediate.cpp
@@ -1670,7 +1670,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, TIntermTyped* constantNod
//
int rightValue = constantNode->getAsConstantUnion()->getUnionArrayPointer()->iConst;
int leftValue = this->getUnionArrayPointer()->iConst;
- int line = this->getLine();
+ //int line = this->getLine();
switch(op) {
//?? add constant intrinsics
@@ -2085,6 +2085,7 @@ bool TIntermediate::removeMatrixConstNode(TIntermSequence &parentSequence, TType
case EbtInt: constantUnion->iConst = 0; break;
case EbtFloat: constantUnion->fConst = 0.0; break;
case EbtBool: constantUnion->bConst = false; break;
+ default: ; /* default added by BrianP */
}
}
TIntermConstantUnion *constant = new TIntermConstantUnion(constantUnion,