export EGL_PLATFORM as x11 in eglonxbackend

required because the early initEGL to detect buffer_age support
can cause usage of the wrong driver in eglGetDisplay()

BUG: 358750
FIXED-IN: 5.6
REVIEW: 126958
This commit is contained in:
Thomas Lübking 2016-02-01 22:18:29 +01:00
parent b905fa0f68
commit 176f492085

View file

@ -89,6 +89,7 @@ EglOnXBackend::~EglOnXBackend()
void EglOnXBackend::init()
{
qputenv("EGL_PLATFORM", "x11");
initEGL(); // required to toggle
initBufferAge(); // EGL_SWAP_BEHAVIOR_PRESERVED_BIT
if (!initRenderingContext()) {