JOML orthographic projection failure.

I just moved my 2D project over from using a matrix/vector maths library I wrote to JOML and everything is good except my camera’s projection matrix is screwed when I use JOML’s matrix.ortho() method. In my test scene I just have a single tilemap about 40*30 tiles in size and a controllable “camera”. With my own implementation of an orthographic projection matrix everything is great, but with JOML’s nothing is rendered.

Everything else works just fine with JOML, it is only the ortho projection that doesn’t.

Below is the offending code:


matrix.ortho(0, width, 0, height, near, far).get(buffer);
glUniformMatrix4fv(location, false, buffer);

Is there something specific to JOML that I’m missing here? Thanks for your time.