Windows 10 – Use Accelerated Graphics on Linux Subsystem with Xming

linuxopenglwindows 10windows-subsystem-for-linuxxming

I've got Ubuntu 16.04 running in Windows 10 16251.0 as a Linux subsystem, and I've got Xming-mesa 6.9.0.31 installed.

I launch Xming using Xming :0 -multiwindow -clipboard

Then in my Ubuntu bash shell I type export DISPLAY=:0 and I can launch graphical applications in Xming.

However, I do not get accelerated graphics, so when I launch an editor (e.g. sudo spyder3), I have to deal with the jerky scrolling and such that you get without acceleration.

How do I fix this? I'm sure my video card (AMD RX480 latest drivers) supports OpenGL, but for some reason I'm not activating it correctly.

Best Answer

Run export LIBGL_ALWAYS_INDIRECT=1 in WSL to force rendering to happen on the Windows side of things.

Related Question