From af1307b42031c536a9eb445d28d3d6f6b140a572 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Wed, 9 Oct 2019 20:53:07 +0000 Subject: [PATCH] render: Use compatible pbuffer Otherwise glReadPixels() will be bonkers. --- src/render.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/render.c b/src/render.c index 8025268..92faf72 100644 --- a/src/render.c +++ b/src/render.c @@ -268,10 +268,10 @@ int renderer_init(struct renderer* self, uint32_t width, uint32_t height) static const EGLint cfg_attr[] = { EGL_SURFACE_TYPE, EGL_PBUFFER_BIT, - EGL_ALPHA_SIZE, 0, - EGL_BLUE_SIZE, 1, - EGL_GREEN_SIZE, 1, - EGL_RED_SIZE, 1, + EGL_ALPHA_SIZE, 8, + EGL_BLUE_SIZE, 8, + EGL_GREEN_SIZE, 8, + EGL_RED_SIZE, 8, EGL_NONE };