Hi, every one! I’m a new guy here, I check all the posts with the keyword “Remote Desktop”, but I still can’t find the answer.
I have a simple OpenGL Application, it just create a opengl context by calling wglCreateContext, but i want it run on both local machine(WinXP SP3) and remote desktop.
So I declare two pfd, one used by local machine and another one used by remote desktop, I’ll post my pseudo code below.
When I run this on local machine, no matter bSoftware is true or false, everything works fine.
When I run this on remote desktop, I set bSoftware to true, make it use PFD_GENERIC_FORMAT, but the GLCreateSoftware always return NULL, because SetPixelFormat always failure, and GetLastError() will be ERROR_INVALID_FUNCTION.
The point is I wanna create a HGLRC on remote desktop, any reply will be appreciated. Thanks.