aboutsummaryrefslogtreecommitdiff
path: root/examples/egl_common.c
diff options
context:
space:
mode:
authorJohannes <johannes.wikner@gmail.com>2022-05-03 02:50:41 +0200
committerKirill Primak <vyivel@eclair.cafe>2022-05-09 09:38:32 +0000
commit12d84f8c36bb8e6e8ea5f7803a91d58d6a554e38 (patch)
tree647c35fe55f481c9d830bffeb4b9da34e0cc7677 /examples/egl_common.c
parentf575e445ec36dec5fe7f5674a4dae8096a833d6f (diff)
examples/egl_common: switch rgba format
The current ARGB2101010 has really "corase" control over the alpha. Particularily, examples/layer-shell would look really strange with certain parameters. For examples, when passing an alpha of 0.84, the box would not appear transparent at all anymore. Patched as suggested by @mstoeckl -- thank you!
Diffstat (limited to 'examples/egl_common.c')
-rw-r--r--examples/egl_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/egl_common.c b/examples/egl_common.c
index 61671508..f095a487 100644
--- a/examples/egl_common.c
+++ b/examples/egl_common.c
@@ -20,10 +20,10 @@ PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT;
const EGLint config_attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
- EGL_RED_SIZE, 1,
- EGL_GREEN_SIZE, 1,
- EGL_BLUE_SIZE, 1,
- EGL_ALPHA_SIZE, 1,
+ EGL_RED_SIZE, 8,
+ EGL_GREEN_SIZE, 8,
+ EGL_BLUE_SIZE, 8,
+ EGL_ALPHA_SIZE, 8,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_NONE,
};