We have OpenGL application working on a server computer. If later we connect via RDP to this server, OpenGL application continues to function without any problems. Obviously RDP just transfers image from server to remote computer.
If we start the same OpenGL application on the same server from RDP session, it runs OpenGL not on server but on the remote computer. Application crashes on operations that require OpenGL 2.0 or higher.
Is there any way to force RDP to run OpenGL code always on server no matter how it was started, directly on server or from remote computer?