From 91747213c5e99f2d4d98208e92a4bd1a986d36a9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 11 Oct 2021 18:32:12 +0200 Subject: Change format --- window_texture.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/window_texture.c b/window_texture.c index c40d4c4..7d5d4b9 100644 --- a/window_texture.c +++ b/window_texture.c @@ -66,13 +66,15 @@ int window_texture_on_resize(WindowTexture *self) { int glx_pixmap_bound = 0; const int pixmap_config[] = { - GLX_BIND_TO_TEXTURE_RGBA_EXT, True, + GLX_BIND_TO_TEXTURE_RGB_EXT, True, GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_WINDOW_BIT, GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_2D_BIT_EXT, /*GLX_BIND_TO_MIPMAP_TEXTURE_EXT, True,*/ - GLX_DOUBLEBUFFER, False, - GLX_BUFFER_SIZE, 32, - GLX_ALPHA_SIZE, 8, + GLX_BUFFER_SIZE, 24, + GLX_RED_SIZE, 8, + GLX_GREEN_SIZE, 8, + GLX_BLUE_SIZE, 8, + GLX_ALPHA_SIZE, 0, None }; -- cgit v1.2.3