Error while compiling Glsl Tops on Mac OS Mojave 10.14.2

Hi,

trying to open a project on Macbook with Mojave 10.14.2 installed.

TD version is latest official build 2019.15230.

All the content in the project is generated by Glsl Tops and they failed to compile - the error says: Use of undeclared identifier gl_fragcolor.

The graphics card is a bit old though - Geforce 650m, could that be the reason or can you suggest anything to try in order to see those shaders? The project works perfectly on Windows 10 PC but we need to move it on the Macbook now…

(Some workaround would be to export all the shaders from the windows machine as loop movies and recreate the project but I want to be sure that we tried the right thing to compile the shaders themselves)

The error is perhaps that gl_fragcolor is no more an identifier but just a variable (arbitrary name) that you have to declare:

out vec4 fragColor;
void main()
{
// vec4 color = texture(sTD2DInputs[0], vUV.st);
vec4 color = vec4(1.0);
fragColor = TDOutputSwizzle(color);
}

Yep that’s correct. gl_FragColor is part of GLSL 1.20, some drivers on Windows let you get away with using it in GLSL 3.30+, but macOS’s driver are stricter to the standard.