[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#731092: libqt4-opengl: Loads wrong glx library when nvidia-glx is installed



Package: libqt4-opengl
Version: 4:4.8.5+git121-g2a9ea11+dfsg1-2
Severity: normal

Programs using qt4-opengl to load GL procaddress using
QGLContext::getProcAddress without loading GL (from nvidia) first will
load the wrong library. They will end up at
/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 -- but this library is
incompatible with the nvidia GL library. The result are rendering
problems (and maybe crashes)

An example can be found at
https://sourceforge.net/p/m64py/discussion/general/thread/ad27e763/?limit=25
-- the only workaround right now is to always load libGL before using
qt4-opengl. The problem seems to be caused by
QGLXContext::getProcAddress. The second time it gets run it will load
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0 even when
/usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.319.76 is loaded
(but was not loaded on program start).

Maybe this is out of scope for Qt and has to be fixed by nvidia?


Reply to: