michael@0: // michael@0: // Copyright (c) 2002-2011 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: #include "compiler/OutputGLSL.h" michael@0: michael@0: TOutputGLSL::TOutputGLSL(TInfoSinkBase& objSink, michael@0: ShArrayIndexClampingStrategy clampingStrategy, michael@0: ShHashFunction64 hashFunction, michael@0: NameMap& nameMap, michael@0: TSymbolTable& symbolTable) michael@0: : TOutputGLSLBase(objSink, clampingStrategy, hashFunction, nameMap, symbolTable) michael@0: { michael@0: } michael@0: michael@0: bool TOutputGLSL::writeVariablePrecision(TPrecision) michael@0: { michael@0: return false; michael@0: } michael@0: michael@0: void TOutputGLSL::visitSymbol(TIntermSymbol* node) michael@0: { michael@0: TInfoSinkBase& out = objSink(); michael@0: michael@0: if (node->getSymbol() == "gl_FragDepthEXT") michael@0: { michael@0: out << "gl_FragDepth"; michael@0: } michael@0: else michael@0: { michael@0: TOutputGLSLBase::visitSymbol(node); michael@0: } michael@0: }