diff options
| author | Karol Herbst <git@karolherbst.de> | 2016-05-29 22:12:27 +0200 |
|---|---|---|
| committer | Karol Herbst <git@karolherbst.de> | 2016-05-29 22:12:31 +0200 |
| commit | c0e21871cdc1273a93cc26ded017edc224a72798 (patch) | |
| tree | a05dc26faad464dca5e3952d5569387a9714f184 /Source/Core/Common/GL/GLInterface | |
| parent | ad0ef70314e243c73e2b73dacc4204a2cbb349c9 (diff) | |
EGL: specify version first
allthough this is a mesa bug, this is a simple enough workaround for context
creation fails with EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR set.
Otherwise dolphin will fail to create 3.3+ core context with current mesa
version
Diffstat (limited to 'Source/Core/Common/GL/GLInterface')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/EGL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/GL/GLInterface/EGL.cpp b/Source/Core/Common/GL/GLInterface/EGL.cpp index 534d94b9ab..77bd67bc29 100644 --- a/Source/Core/Common/GL/GLInterface/EGL.cpp +++ b/Source/Core/Common/GL/GLInterface/EGL.cpp @@ -211,10 +211,10 @@ bool cInterfaceEGL::Create(void *window_handle, bool core) { std::vector<EGLint> core_attribs = { - EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR, EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR, - EGL_CONTEXT_FLAGS_KHR, EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR, EGL_CONTEXT_MAJOR_VERSION_KHR, version.first, EGL_CONTEXT_MINOR_VERSION_KHR, version.second, + EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR, EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR, + EGL_CONTEXT_FLAGS_KHR, EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR, EGL_NONE }; |
