Skip to content

Commit

Permalink
Make it possible to set the EGL_DEFAULT_DISPLAY
Browse files Browse the repository at this point in the history
Change-Id: I564f1ce72501bc12b960c87c953343fd64ee9011
Reviewed-by: Laszlo Agocs <[email protected]>
  • Loading branch information
nezticle authored and ngard committed Mar 13, 2020
1 parent ef5c747 commit 20f7e18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ void QEglFSDeviceIntegration::platformDestroy()

EGLNativeDisplayType QEglFSDeviceIntegration::platformDisplay() const
{
return EGL_DEFAULT_DISPLAY;
bool displayOk;
const int defaultDisplay = qEnvironmentVariableIntValue("QT_QPA_EGLFS_DEFAULT_DISPLAY", &displayOk);
return displayOk ? EGLNativeDisplayType(quintptr(defaultDisplay)) : EGL_DEFAULT_DISPLAY;
}

EGLDisplay QEglFSDeviceIntegration::createDisplay(EGLNativeDisplayType nativeDisplay)
Expand Down

0 comments on commit 20f7e18

Please sign in to comment.