Skip to content

Commit

Permalink
QNX: fix build
Browse files Browse the repository at this point in the history
Remove unused argument and use default contructor for the flags.

Change-Id: I09d319bc58199ed713333055a2fdd519c249f831
Reviewed-by: Ville Voutilainen <[email protected]>
Reviewed-by: James McDonnell <[email protected]>
  • Loading branch information
sapiippo committed Aug 12, 2020
1 parent b92ea7d commit 7448884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/platforms/qnx/qqnxglcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ QT_BEGIN_NAMESPACE

static QEGLPlatformContext::Flags makeFlags()
{
QEGLPlatformContext::Flags result = 0;
QEGLPlatformContext::Flags result = {};

if (!QQnxIntegration::instance()->options().testFlag(QQnxIntegration::SurfacelessEGLContext))
result |= QEGLPlatformContext::NoSurfaceless;
Expand All @@ -69,7 +69,7 @@ static QEGLPlatformContext::Flags makeFlags()
}

QQnxGLContext::QQnxGLContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share)
: QEGLPlatformContext(format, share, QQnxIntegration::instance()->eglDisplay(), 0, QVariant(),
: QEGLPlatformContext(format, share, QQnxIntegration::instance()->eglDisplay(), nullptr,
makeFlags())
{
}
Expand Down

0 comments on commit 7448884

Please sign in to comment.