Merge pull request #3870 from karolherbst/context_creation_mesa

EGL: specify version first
This commit is contained in:
Markus Wick 2016-05-30 12:47:55 +02:00
commit 9c187c07cc

View File

@ -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
};