<div dir="ltr"><div dir="ltr">On Fri, Jul 5, 2019 at 7:49 PM Ryan Joseph <<a href="mailto:genericptr@gmail.com">genericptr@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Do you mean this? I still get an error without H+.<br>
<br>
{$mode objfpc}<br>
<br>
program test;<br>
<br>
var lines: ansistring = `<br>
#version 150<br>
<br>
uniform sampler2D textures[8];<br>
in vec2 vertexTexCoord;<br>
in vec4 vertexColor;<br>
in float vertexUVMap;<br>
out vec4 fragColor;<br>
<br>
void main()<br>
{<br>
if (vertexUVMap == 255) {<br>
fragColor = vertexColor;<br>
} else {<br>
fragColor = texture(textures[int(vertexUVMap)], vertexTexCoord.st);<br>
if (vertexColor.a < fragColor.a) {<br>
fragColor.a = vertexColor.a;<br>
}<br>
}<br>
}`;<br></blockquote><div><br></div><div>Copy and paste this exact code into a file called test.pas:</div><div><br></div>{$mode objfpc}<br>{ explicitly set H- ! }<br>{$H-}<br><br>program test;<br><br>var lines: ansistring = `<br> #version 150<br><br> uniform sampler2D textures[8];<br> in vec2 vertexTexCoord;<br> in vec4 vertexColor;<br> in float vertexUVMap;<br> out vec4 fragColor;<br><br> void main()<br> {<br> if (vertexUVMap == 255) {<br> fragColor = vertexColor;<br> } else {<br> fragColor = texture(textures[int(vertexUVMap)], vertexTexCoord.st);<br> if (vertexColor.a < fragColor.a) {<br> fragColor.a = vertexColor.a;<br> }<br> }<br> }`;<br><br>begin <br> WriteLn(lines); <br><div>end.</div><div><br></div><div>With a build of my fork of the compiler as uploaded, compiling it with simply "fpc ./test.pas" works without issues, and it runs like you'd expect.</div><div><br></div><div>If that somehow is not the case for you, what is the *exact* error you're getting?</div></div></div>