aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-08-30 23:09:59 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-30 23:09:59 +0200
commite8fdae62bec0a941b7f80cf027b1c2f8d840c89b (patch)
tree1c1c26b5d75d628ea8f0bf9b15bfb4bbda8ee129
parentf926cc9b8bbf0d33a8a6d4682fc4d5356cac8d55 (diff)
switch from rgba to rgb for window texture
-rw-r--r--.gitignore1
-rw-r--r--src/window_texture.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 636c6b9..47f12d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ sibs-build/
compile_commands.json
tests/sibs-build/
tests/compile_commands.json
+.clangd/
diff --git a/src/window_texture.c b/src/window_texture.c
index f1818c9..e2093b8 100644
--- a/src/window_texture.c
+++ b/src/window_texture.c
@@ -61,13 +61,13 @@ 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_ALPHA_SIZE, 0,
None
};