Skip to content

Instantly share code, notes, and snippets.

@Subv
Created September 13, 2018 15:30
Show Gist options
  • Save Subv/a4b93b515871de0ee3825b177bd07803 to your computer and use it in GitHub Desktop.
Save Subv/a4b93b515871de0ee3825b177bd07803 to your computer and use it in GitHub Desktop.
diff --git a/src/egl/drivers/switch/egl_switch.c b/src/egl/drivers/switch/egl_switch.c
index f3c6e95cda..1b6df17516 100644
--- a/src/egl/drivers/switch/egl_switch.c
+++ b/src/egl/drivers/switch/egl_switch.c
@@ -432,6 +432,8 @@ switch_initialize(_EGLDriver *drv, _EGLDisplay *dpy)
dpy->DriverData = display;
dpy->Version = 14;
+ dpy->Extensions.KHR_create_context = EGL_TRUE;
+
stmgr = CALLOC_STRUCT(st_manager);
if (!stmgr) {
_eglError(EGL_BAD_ALLOC, "switch_initialize");
@@ -566,9 +568,7 @@ switch_create_context(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf,
memset(&attribs, 0, sizeof(attribs));
switch (_eglGetCurrentThread()->CurrentAPI) {
case EGL_OPENGL_API:
- attribs.profile = ST_PROFILE_OPENGL_CORE;
- attribs.major = 3;
- attribs.minor = 2;
+ attribs.profile = ST_PROFILE_DEFAULT;
break;
case EGL_OPENGL_ES_API:
attribs.profile = ST_PROFILE_OPENGL_ES2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment