summaryrefslogtreecommitdiff
path: root/src/egl.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-11-01 18:01:34 +0000
committerPhil Jones <philj56@gmail.com>2021-11-01 18:01:34 +0000
commit3ddbca74567ecab28b2b1624e6e9b026f9705f3c (patch)
treee5419f2e40b2bdc9dcc6f5ef378ec92967365015 /src/egl.c
parent94fa998b7e3524ce101a977ed3516fac13461287 (diff)
Switch from OpenGL ES 3 to 2.
Diffstat (limited to 'src/egl.c')
-rw-r--r--src/egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl.c b/src/egl.c
index 5ee804a..5af2b64 100644
--- a/src/egl.c
+++ b/src/egl.c
@@ -37,7 +37,7 @@ void egl_create_context(struct egl *egl, struct wl_display *wl_display)
EGLint num_configs;
static const EGLint config_attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
- EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_RED_SIZE, 8,
EGL_GREEN_SIZE, 8,
EGL_BLUE_SIZE, 8,
@@ -72,7 +72,7 @@ void egl_create_context(struct egl *egl, struct wl_display *wl_display)
}
static const EGLint context_attribs[] = {
- EGL_CONTEXT_MAJOR_VERSION, 3,
+ EGL_CONTEXT_MAJOR_VERSION, 2,
EGL_NONE
};