diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-11 18:32:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-11 18:32:12 +0200 |
commit | 91747213c5e99f2d4d98208e92a4bd1a986d36a9 (patch) | |
tree | c6e642a78cfa4f387d2f2a305e1b8ec58048d841 | |
parent | ac0ff061d6b9ae966f45f2d4b179706e5f8dc9fa (diff) |
Change format
-rw-r--r-- | window_texture.c | 10 |
1 files 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 }; |