开发者

Adapting OpenGL render context on remote desktop connection attempt

开发者 https://www.devze.com 2022-12-16 17:37 出处:网络
We have an application which uses an Open开发者_StackOverflow中文版GL render context in a subwindow to display a large bitmap. However, when a user remotely connects to a box running this app, the ope

We have an application which uses an Open开发者_StackOverflow中文版GL render context in a subwindow to display a large bitmap. However, when a user remotely connects to a box running this app, the openGL display stops working, most likely due to the reduced texture resolution.

While we can detect the remote desktop connection starting/ending using WTS_REMOTE_CONNECT, the openGL context does not switch to the virtual driver when trying to determine the new max texture resolution.

Completely restarting the openGL subthread hangs on ChoosePixelFormat, this wont return until I am logged in locally again, otherwise this would be the "bad" solution.


It seam that application is badly written.

Code that is responsible for detecting context changes and reacting to them accordingly, do not exist or is buggy. Any way, you can not do much, unless you have access to source code. Also you can report is as a bug to vendor or provider from whom you bought it.

0

精彩评论

暂无评论...
验证码 换一张
取 消