I've found that nvidia driver is causing this issue. (I have nvidia video card).
Just open nvidia settings and under 3D settings / Adjust image settings with preview /
Set to "Let the 3D application decide" option
PS: don't know what screen sharing had to do with 3D settings, but this fixed it for me
That should fix the issue :)