diff --git a/gfx/gl/GLScreenBuffer.cpp b/gfx/gl/GLScreenBuffer.cpp index 0a5db1b7ff94..f67b283365bd 100755 --- a/gfx/gl/GLScreenBuffer.cpp +++ b/gfx/gl/GLScreenBuffer.cpp @@ -114,6 +114,12 @@ GLScreenBuffer::CreateFactory(GLContext* gl, default: break; } + +#ifdef GL_PROVIDER_GLX + if (!factory && sGLXLibrary.UseSurfaceSharing()) { + factory = SurfaceFactory_GLXDrawable::Create(gl, caps, forwarder, flags); + } +#endif } return factory;