X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Foutput.cpp;h=c2c54f9ff33834d11d681a0e80e976aa75747b39;hp=6ba06447a3b02e6254b128884c72a206813ee22b;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=e9a898f315b5d1396f196d785913a283c30940f2 diff --git a/source/glsl/output.cpp b/source/glsl/output.cpp index 6ba06447..c2c54f9f 100644 --- a/source/glsl/output.cpp +++ b/source/glsl/output.cpp @@ -8,16 +8,6 @@ namespace Msp { namespace GL { namespace SL { -Formatter::Formatter(): - stage(0), - source_index(0), - source_line(1), - indent(0), - parameter_list(false), - omit_builtin(false), - r_empty_name(false) -{ } - string Formatter::apply(Stage &s) { stage = &s; @@ -28,7 +18,7 @@ string Formatter::apply(Stage &s) if(ver) { append(format("#version %d%02d", ver.major, ver.minor)); - if(s.required_features.gl_api==OPENGL_ES2 && ver>=Version(3, 0)) + if(s.required_features.target_api==OPENGL_ES && ver>=Version(3, 0)) append(" es"); formatted += '\n'; }