Skip to content

Commit 1397c18

Browse files
author
chentan
committed
fix egl init attr for EGL_STENCIL_SIZE, make same as pc effect
1 parent 6dd9b8e commit 1397c18

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

awtk-port/egl_devices/gbm/egl_devices.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const EGLint attribute_list[] = {
6565
EGL_GREEN_SIZE, 8,
6666
EGL_BLUE_SIZE, 8,
6767
EGL_ALPHA_SIZE, 0,
68+
EGL_STENCIL_SIZE, 8,
6869
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
6970
EGL_NONE
7071
};

awtk-port/egl_devices/x11/egl_devices.c

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,15 @@
3535
// EGL_BUFFER_SIZE, 32,
3636
// EGL_RENDERABLE_TYPE,
3737
// EGL_OPENGL_ES2_BIT,
38-
EGL_SAMPLES,
39-
0,
40-
EGL_RED_SIZE,
41-
8,
42-
EGL_GREEN_SIZE,
43-
8,
44-
EGL_BLUE_SIZE,
45-
8,
46-
EGL_ALPHA_SIZE,
47-
EGL_DONT_CARE,
48-
EGL_STENCIL_SIZE,
49-
8,
50-
EGL_DEPTH_SIZE,
51-
0,
52-
EGL_SURFACE_TYPE,
53-
EGL_WINDOW_BIT,
54-
EGL_MIN_SWAP_INTERVAL,
55-
0,
38+
EGL_SAMPLES, 0,
39+
EGL_RED_SIZE, 8,
40+
EGL_GREEN_SIZE, 8,
41+
EGL_BLUE_SIZE, 8,
42+
EGL_ALPHA_SIZE, EGL_DONT_CARE,
43+
EGL_STENCIL_SIZE, 8,
44+
EGL_DEPTH_SIZE, 0,
45+
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
46+
EGL_MIN_SWAP_INTERVAL, 0,
5647
EGL_NONE,
5748
};
5849

0 commit comments

Comments
 (0)