I noticed that there is a problem with the math I'm using to create the matrices. I noticed that when I tried to transpose the matrix using glUniform and my custom-build function. They produced different results.

Does anyone have any decent Pascal math library with matrix functions (I'd also like to have functions for calculating transformation matrices included)?