Ive solved the problem (feel a bit sheepish!).
I was using Grey Aliens framework so it didn't occur to me that the window was created with graphics and not graphics 3d!
Changed it and it now works like a charm.
I was using Grey Aliens framework so it didn't occur to me that the window was created with graphics and not graphics 3d!
Changed it and it now works like a charm.