X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foutput.cpp;h=0a4af2d42b0997f6d72f89542e1b6c038c3357d5;hb=3bc34893905a2df622894aadcb6669f27f186772;hp=6ba06447a3b02e6254b128884c72a206813ee22b;hpb=e9a898f315b5d1396f196d785913a283c30940f2;p=libs%2Fgl.git diff --git a/source/glsl/output.cpp b/source/glsl/output.cpp index 6ba06447..0a4af2d4 100644 --- a/source/glsl/output.cpp +++ b/source/glsl/output.cpp @@ -28,7 +28,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'; }