aboutsummaryrefslogtreecommitdiff
path: root/src/window_texture.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-06-09 22:11:16 +0200
committerdec05eba <dec05eba@protonmail.com>2025-06-09 22:11:16 +0200
commit7f00ce22e7e86904e09f900422dfa591d045f447 (patch)
tree7ba28db730298c462b3a028348b4960977e751c2 /src/window_texture.c
parent3ba1dbda98fcf221eb92d241b753ccdef9eb2a08 (diff)
Revert "Fix screen and portal capture not working on some intel gpus"
This reverts commit 3ba1dbda98fcf221eb92d241b753ccdef9eb2a08.
Diffstat (limited to 'src/window_texture.c')
-rw-r--r--src/window_texture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window_texture.c b/src/window_texture.c
index ba7212a..4846bdc 100644
--- a/src/window_texture.c
+++ b/src/window_texture.c
@@ -85,6 +85,10 @@ int window_texture_on_resize(WindowTexture *self) {
texture_id = self->texture_id;
}
+ const float border_color[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
+ self->egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
+ self->egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);
+ self->egl->glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, border_color);
self->egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
self->egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);