diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-16 22:23:26 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-16 22:23:26 +0200 |
commit | 0cf0a9abf5b2f691eeb0999bdd6a2df098f09b14 (patch) | |
tree | ed449c5ca36a98d4a5ae5cabb2ad7d574534b69a | |
parent | bc58e382b7182497d1cfc08e1a158d1ecd5ef4cd (diff) |
Create egl3 context
-rw-r--r-- | include/egl.h | 1 | ||||
-rw-r--r-- | src/egl.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/egl.h b/include/egl.h index 4abc0c2..e11557e 100644 --- a/include/egl.h +++ b/include/egl.h @@ -49,6 +49,7 @@ typedef void(*__GLXextFuncPtr)(void); #define EGL_OPENGL_BIT 0x0008 #define EGL_OPENGL_ES_BIT 0x0001 #define EGL_OPENGL_ES2_BIT 0x0004 +#define EGL_OPENGL_ES3_BIT 0x00000040 #define EGL_NONE 0x3038 #define EGL_CONTEXT_CLIENT_VERSION 0x3098 #define EGL_BACK_BUFFER 0x3084 @@ -35,7 +35,7 @@ static bool gsr_egl_create_window(gsr_egl *self) { const int32_t attr[] = { EGL_BUFFER_SIZE, 24, - EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, + EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT, EGL_NONE, EGL_NONE }; |