Fix deprecated setOption() usage in GLX integration
The correct function is setOptions(). Change-Id: Ife9ff75c409c843b4871804fcfd06b9d2a7733d3 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
parent
72fe9f1d0d
commit
ace3b97d4c
@ -130,7 +130,7 @@ static void updateFormatFromContext(QSurfaceFormat &format)
|
||||
}
|
||||
|
||||
format.setProfile(QSurfaceFormat::NoProfile);
|
||||
format.setOption(QSurfaceFormat::FormatOptions());
|
||||
format.setOptions(QSurfaceFormat::FormatOptions());
|
||||
|
||||
if (format.renderableType() == QSurfaceFormat::OpenGL) {
|
||||
if (format.version() < qMakePair(3, 0)) {
|
||||
@ -211,7 +211,7 @@ QGLXContext::QGLXContext(QXcbScreen *screen, const QSurfaceFormat &format, QPlat
|
||||
// Don't bother with versions below ES 2.0
|
||||
glVersions << 30 << 20;
|
||||
// ES does not support any format option
|
||||
m_format.setOption(QSurfaceFormat::FormatOptions());
|
||||
m_format.setOptions(QSurfaceFormat::FormatOptions());
|
||||
}
|
||||
|
||||
Q_ASSERT(glVersions.count() > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user