Check for OpenGL sharing capability instead of crashing mysteriously