X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.cpp;h=d8b060ea4e3873285980373e45974ee1b6b84950;hb=3bb1cda37e23840236b46c4de20cab2c70b02327;hp=e8b06c865dece84b471efff19f1608bed56916aa;hpb=c8de66203565f07f10898a74dbd55072432790fc;p=libs%2Fgl.git diff --git a/source/glsl/compiler.cpp b/source/glsl/compiler.cpp index e8b06c86..d8b060ea 100644 --- a/source/glsl/compiler.cpp +++ b/source/glsl/compiler.cpp @@ -357,12 +357,8 @@ void Compiler::finalize(Stage &stage, Mode mode) { LegacyConverter().apply(stage, features); resolve(stage, RESOLVE_VARIABLES|RESOLVE_FUNCTIONS); + PrecisionConverter().apply(stage); } - - if(get_gl_api()==OPENGL_ES2 && mode==PROGRAM) - DefaultPrecisionGenerator().apply(stage); - else if(mode==MODULE) - PrecisionRemover().apply(stage); } void Compiler::inject_block(Block &target, const Block &source)