SDL_egl: allow creation of versioned OpenGL contexts with EGL_KHR_create_context

If the EGL extension EGL_KHR_create_context is available, we can use it to
set the core/compatability profile and the minimum OpenGL version.

Use this if it is available to get the context requested by the GL attributes.
This commit is contained in:
Knut Andre Tidemann
2014-06-28 12:17:29 -03:00
parent e592b04683
commit 02e9f81ebe
4 changed files with 60 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#ifndef _MSC_VER
#include <EGL/egl.h>
#include <EGL/eglext.h>
#else /* _MSC_VER */