diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-10-24 14:35:50 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-31 12:37:51 +0100 |
commit | ba92fe922244a66b4851a049af61cf9be7b1bc9d (patch) | |
tree | 9fd717a158a23779eb443d012f7552c9bdc0890b /src/platformsupport/eglconvenience/qeglplatformcontext.cpp | |
parent | 73b682d816ec12afbf8064a44e462dd89e4c38df (diff) |
Re-added hellogl_es and ES 1 support for QOpenGLContext.
Change-Id: I576cf3595cdeeefb4ed840bb3b2b7097b3609cc7
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/platformsupport/eglconvenience/qeglplatformcontext.cpp')
-rw-r--r-- | src/platformsupport/eglconvenience/qeglplatformcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp index 58debb8ba8..dfa0bacd35 100644 --- a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp +++ b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp @@ -48,7 +48,7 @@ #include <EGL/egl.h> QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, - EGLint eglClientVersion, EGLenum eglApi) + EGLenum eglApi) : m_eglDisplay(display) , m_eglApi(eglApi) , m_format(format) @@ -60,7 +60,7 @@ QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatform QVector<EGLint> contextAttrs; contextAttrs.append(EGL_CONTEXT_CLIENT_VERSION); - contextAttrs.append(eglClientVersion); + contextAttrs.append(format.majorVersion()); contextAttrs.append(EGL_NONE); eglBindAPI(m_eglApi); |