Skip to content

Commit 84908c5

Browse files
author
Nick Klingensmith
committed
Replace EGL_SURFACE_TYPE's EGL_DONT_CARE to EGL_PBUFFER_BIT | EGL_WINDOW_BIT.
Signed-off-by: Nick Klingensmith <quic_nklingen@quicinc.com>
1 parent 1dcb6a4 commit 84908c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sk_gpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3930,7 +3930,7 @@ int32_t gl_init_emscripten() {
39303930
int32_t gl_init_egl() {
39313931
#ifdef _SKG_GL_LOAD_EGL
39323932
const EGLint attribs[] = {
3933-
EGL_SURFACE_TYPE, EGL_DONT_CARE,
3933+
EGL_SURFACE_TYPE, EGL_PBUFFER_BIT | EGL_WINDOW_BIT,
39343934
EGL_CONFORMANT, EGL_OPENGL_ES3_BIT_KHR,
39353935
EGL_BLUE_SIZE, 8,
39363936
EGL_GREEN_SIZE, 8,

src/sk_gpu_gl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ int32_t gl_init_emscripten() {
674674
int32_t gl_init_egl() {
675675
#ifdef _SKG_GL_LOAD_EGL
676676
const EGLint attribs[] = {
677-
EGL_SURFACE_TYPE, EGL_DONT_CARE,
677+
EGL_SURFACE_TYPE, EGL_PBUFFER_BIT | EGL_WINDOW_BIT,
678678
EGL_CONFORMANT, EGL_OPENGL_ES3_BIT_KHR,
679679
EGL_BLUE_SIZE, 8,
680680
EGL_GREEN_SIZE, 8,

0 commit comments

Comments
 (0)