> On Jul 5, 2019, at 4:30 PM, Ben Grasset <operato...@gmail.com> wrote: > > Doesn't work in what regard? You wouldn't even need {$H+} there, as you're > explicitly using an ansistring. >
The problem is I was using ObjFPC mode. Works fine in Delphi. A bug? {$mode objfpc} {$modeswitch multilinestrings} {$multilinestringlineending crlf} program test; {$push} {$H+} const lines = ` #version 150 uniform sampler2D textures[8]; in vec2 vertexTexCoord; in vec4 vertexColor; in float vertexUVMap; out vec4 fragColor; void main() { if (vertexUVMap == 255) { fragColor = vertexColor; } else { fragColor = texture(textures[int(vertexUVMap)], vertexTexCoord.st); if (vertexColor.a < fragColor.a) { fragColor.a = vertexColor.a; } } }`; {$pop} begin writeln(lines); end. Regards, Ryan Joseph _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel