bugtracker icon indicating copy to clipboard operation
bugtracker copied to clipboard

Installing gl4es breakes a huge amount of applications

Open IMbackK opened this issue 5 years ago • 2 comments

Gl4es is very incomplete and worse many applications that will use es2 when given mesa llvmpipe as the opengl implementation will detect Gl4es as a hardware accelerated opengl implementation and use that over es2.

To solve this we need to use glvnd to selectivly use opengl via gl4es where appropriate and use mesa llvmpipe otherwise.

It would also be nice to use glnvd for es2 selection but pvr might not work with it. needs investigation

IMbackK avatar Jul 23 '20 12:07 IMbackK

applications this affects:

firefox-esr anything qt5 mpv (will atempt to use opengl otherwiese tryes es2 dosent work either way) likely many others

IMbackK avatar Jul 23 '20 12:07 IMbackK

Most applications that can target both Opengl and Opengl-ES will assume the opengl backend is preferable and choose it.

I have on occassion moved-out libGL.so, rerun ldconfig and restarted the application to see how it works talking directly to gl-es.

I can't think of a way to avoid this behavior within gl4es itself, but maybe it's possible to invoke the affected applications with some LD_PRELOAD or other environment variable, to prevent them from believing OpenGL is available?

clort81 avatar Aug 16 '20 05:08 clort81