OpenGL Shader not working in latest juce 7 develop tip

Hi Folks,

i was working until now with Juce 6.1.6 but i have to transition to 7 and was checking out the latest tip on develop.

Now after switching to 7 my OpenGL vertex shader causes an assert with the message “GL_INVALID_OPERATION” and no further details given. Did not change anything, the GLSL version is the same. I am on Monterey and M1 Max.

Here is the shader code:

#version 150
in vec4 position;
in vec2 textureCoordIn;
in float subMeshIndex;

uniform mat4 projectionMatrix;
uniform mat4 viewMatrix;
uniform vec2 resolution;
uniform float screenScale;
uniform float scalings[80];
uniform float visible[40];
uniform float textureOffset[80];

out vec2 textureCoordOut;
out vec2 texOffset;
out vec2 scaling;
out vec2 reso;
out float scrScale;
out float visibility;

void main()
{
    int i = int(subMeshIndex);
    visibility = visible[i];
    texOffset[0] = textureOffset[2 * i];
    texOffset[1] = textureOffset[2 * i + 1];
    scaling = vec2(scalings[2*i], scalings[2*i+1]);
    gl_Position = projectionMatrix * viewMatrix * position;
    textureCoordOut = textureCoordIn;
    reso = resolution;
    scrScale = screenScale;
}

Any idea what changed in juce so that this happens?

The fuckup happens here:

OpenGL: Keep track of previously-attached VAOs and buffers when creating additional GL-backed Graphics contexts f012f8c28 reuk reuk@users.noreply.github.com 8. Jun 2023 at 16:26

Will create a new thread since the shader is not the cause.