From 3c9b650d1b2b88ebcca459ebf00054f36f542e9d Mon Sep 17 00:00:00 2001 From: Charles Huber Date: Fri, 10 Apr 2015 08:58:06 -0500 Subject: [PATCH] Enable KHR_create_context in EGL state tracker Enable KHR_create_context in EGL state tracker. --- src/gallium/state_trackers/egl/common/egl_g3d.c | 2 ++ src/gallium/state_trackers/egl/common/egl_g3d_api.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/state_trackers/egl/common/egl_g3d.c index d3f5e92..343171a 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d.c @@ -556,6 +556,8 @@ egl_g3d_initialize(_EGLDriver *drv, _EGLDisplay *dpy) #endif #if FEATURE_ES2 dpy->ClientAPIs |= EGL_OPENGL_ES2_BIT; + dpy->ClientAPIs |= EGL_OPENGL_ES3_BIT_KHR; + dpy->Extensions.KHR_create_context = EGL_TRUE; #endif #if FEATURE_VG dpy->ClientAPIs |= EGL_OPENVG_BIT; diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_api.c b/src/gallium/state_trackers/egl/common/egl_g3d_api.c index b19d899..a5ef45d 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d_api.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d_api.c @@ -58,6 +58,7 @@ egl_g3d_choose_st(_EGLDriver *drv, _EGLContext *ctx, *profile = ST_PROFILE_OPENGL_ES1; break; case 2: + case 3: api = ST_API_OPENGL; *profile = ST_PROFILE_OPENGL_ES2; break; -- 1.9.5.msysgit.0