Index: src/compiler/Initialize.cpp |
=================================================================== |
--- src/compiler/Initialize.cpp (revision 2247) |
+++ src/compiler/Initialize.cpp (working copy) |
@@ -539,6 +539,10 @@ |
if (spec != SH_CSS_SHADERS_SPEC) { |
symbolTable.insert(*new TVariable(NewPoolTString("gl_FragColor"), TType(EbtFloat, EbpMedium, EvqFragColor, 4))); |
symbolTable.insert(*new TVariable(NewPoolTString("gl_FragData[gl_MaxDrawBuffers]"), TType(EbtFloat, EbpMedium, EvqFragData, 4))); |
+ if (resources.EXT_frag_depth) { |
+ symbolTable.insert(*new TVariable(NewPoolTString("gl_FragDepthEXT"), TType(EbtFloat, resources.FragmentPrecisionHigh ? EbpHigh : EbpMedium, EvqFragDepth, 1))); |
+ symbolTable.relateToExtension("gl_FragDepthEXT", "GL_EXT_frag_depth"); |
+ } |
} else { |
symbolTable.insert(*new TVariable(NewPoolTString("css_MixColor"), TType(EbtFloat, EbpMedium, EvqGlobal, 4))); |
symbolTable.insert(*new TVariable(NewPoolTString("css_ColorMatrix"), TType(EbtFloat, EbpMedium, EvqGlobal, 4, true))); |
@@ -656,4 +660,6 @@ |
extBehavior["GL_ARB_texture_rectangle"] = EBhUndefined; |
if (resources.EXT_draw_buffers) |
extBehavior["GL_EXT_draw_buffers"] = EBhUndefined; |
+ if (resources.EXT_frag_depth) |
+ extBehavior["GL_EXT_frag_depth"] = EBhUndefined; |
} |