Quote Originally Posted by Clootie
Quote Originally Posted by grudzio
This is strange. I have function like Yours and it runs ok. The only difference is that I have

[pascal]
glGetDoublev(GL_MODELVIEW_MATRIX, @MVMat);
glGetDoublev(GL_PROJECTION_MATRIX, @PJMat);
[/pascal]

instead of

[pascal]
glGetDoublev(GL_MODELVIEW_MATRIX, @MVMat[0]);
glGetDoublev(GL_PROJECTION_MATRIX, @PJMat[0]);
[/pascal]

But I don't know if this is the problem. If you were compiling on Linux, I would say that probably glu library is not loaded.
IIRC there is some difference either in Delphi and FPC or in static and dynamic arrays referenced by @X and @X[0]. It can give either address of first array element or address of dynamic array pointer. So you better verify this issue.

And yes, it should not be related to OpenGL stuff at all, just to compilers.
I have tried both versions, with the [0] and without the [0] to no avail

cheers,
Paul.