Hi,
I have run in to a problem which happens when I ssh to a Linux server from a Mac (ssh -X), and then lanuch an application from the linux server. The window is managed by GLFW, but when I try and make an interface using:
sk_sp<const GrGLInterface> interface = GrGLMakeNativeInterface();
I end up with a null pointer. I have tried lots of different window hints when setting up the glfw window, but cant seem to find any that work.
Also I do not seem to have a problem if I use a linux->linux connection, this only occurs when ssh'ing from mac->linux, so im guessing its due to differences in opengl APIs?
glxgears works but with a few errors:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Running glxinfo also hints at some errors:
LIBGL_DEBUG=verbose glxinfo | grep :
libGL: MESA-LOADER: dlopen(/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
libGL: did not find extension DRI_Kopper version 1
libGL: did not find extension DRI2_Flush version 1
libGL: Disabling server's aux buffer support
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
name of display: localhost:10.0
display: localhost:10 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX version: 1.4
GLX extensions:
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon R9 M290X OpenGL Engine
OpenGL version string: 1.4 (2.1 ATI-4.6.21)
OpenGL extensions:
160 GLXFBConfigs:
X Error of failed request: GLXBadCurrentWindow
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 54
Current serial number in output stream: 54
I have also tried using glad to try and force OpenGL version1.4 but no success.
Are there any ways of making a custom interface to match the Mac device? I'm not a graphics expert, so would really appreciate any ideas of what to try, or where to look! Thanks