summaryrefslogtreecommitdiffstats
path: root/src/xml/doc/src/xml-processing.qdoc
diff options
context:
space:
mode:
authorLucas Wang <wbsecg1@gmail.com>2020-03-01 10:55:32 +0800
committerTor Arne Vestbø <torarnv@gmail.com>2020-03-15 00:02:45 +0100
commit9287447a67e8381e6cfd4bb2b143f522bb7969b1 (patch)
tree2585db40e6d5cc4a519e480ac1cabd38f3a411db /src/xml/doc/src/xml-processing.qdoc
parent91436e2409f8950389ca959c00175bf91da2dafc (diff)
macOS: Ensure GL symbols are resolved from the OpenGL framework
The app or its dependencies may link against X11's libGL.1.dylib from XQuarz, to support GLX on macOS. Doing so may place libGL earlier in the load order than Apple's OpenGL framework, which results in dlsym picking symbols from libGL when using the RTLD_DEFAULT lookup strategy, breaking Qt's OpenGL support in various ways: QOpenGLShaderProgram: could not create shader program Warning: "" failed to compile! To fix this we use RTLD_NEXT, which looks up the symbol in dependency order of the image that called dlsym, rather than the global load order. Change-Id: I1ec3055a4ab0bb96566c7e196d301b30785f2dc0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/xml/doc/src/xml-processing.qdoc')
0 files changed, 0 insertions, 0 deletions