glReadPixel error when used remoterly
I have a program which runs well on a local machine. When I run it remotely(using ssh -X to login the remote machine), it still runs and display correctly on the X-window. However, when I try to retrieve the image using glReadPixels, the retrieval image is garbage. But the retrieval is correct on a local machine. What could possible go wrong? Thanks.
What's the output of glxinfo?
- as OpenGL ought to be
Are u using nvidia or amd driver or mesa3D ?