UBO with arrays acting weird

Hello, I’m getting weird behavior in my fragment shader.

I have two arrays in my uniform buffer a vec4 [30] and a vec3 [16]. The last arrays data seems to have been made changes to at some point.


uniform Sky {
    vec4 stars[30];
    vec3 cloudparts[16];
};

I tried different layouts with no change in behavior, so what whould I try next? I buffer the data in the right order etc as well. first a buffer for stars then a buffersubdata for cloudparts

Some of the array indices have valid data, others seem to have swizzled components or something…

Latest Nvidia driver with a GT240. I am not over the max uniforms limit.

The last arrays data seems to have been made changes to at some point.

What does that mean?

Only some values in the array have the same value as in my cpu code.