-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank screen when running app on microsoft remote desktop #42
Comments
By default, the graphics rendering over RDP is not hardware accelerated. For this reason, OpenGL does not work over RDP. However, you could enable GPU rendering over RDP on the remote machine to overcome this issue. Try enable it by following this procedure and let us know if it works! |
In most cases I wouldn't be able to change group policy for our rdp computers. However I believe my remote desktop is running in hardware mode because calling GL.GetString(StringName.Renderer) returns Geforce GTX 1060 which is the graphics card on the remote machine. Also I tried copying an openGL software driver to the executing directory but this causes the program to crash on load with System.AccessViolationException The link to the github of the software driver I tried is below: |
Good, it seems that OpenGL is loaded correctly. |
I did some more digging and found a solution. Apparently the issue is on the Direct3D side of things. In the source file GLWpfControlRenderer.cs there is a method PostRender(). If you change the line: To this: RDP will work. The name of the argument I set to true is enableSoftwareFallback. Not sure if it will impact performance in non RDP scenarios. Maybe you will want to make it a property on the control that users can toggle if they are running RDP. |
Thanks @clbsoft - That's really great. Would love a PR for that fix if you can. |
This should be fixed with #57. Closing. |
I tested out the wpf control and it works great locally. I tried remoting in to my work computer with remote desktop and when I run it the window is blank white. It doesn't crash but you can't see anything. Both computers have Windows 10 and nvidia graphics cards with the latest drivers. Also remote desktop worked fine on the old winforms gl control.
The text was updated successfully, but these errors were encountered: