aboutsummaryrefslogtreecommitdiff
path: root/src/window_texture.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-06-09 22:07:52 +0200
committerdec05eba <dec05eba@protonmail.com>2025-06-09 22:07:52 +0200
commit3ba1dbda98fcf221eb92d241b753ccdef9eb2a08 (patch)
tree12043c848fd0b644c41ffc15834b95f4ac871e28 /src/window_texture.c
parenta849d2cdadbc0460cf62ddbd790c982f46143198 (diff)
Fix screen and portal capture not working on some intel gpus
Diffstat (limited to 'src/window_texture.c')
-rw-r--r--src/window_texture.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/window_texture.c b/src/window_texture.c
index 4846bdc..ba7212a 100644
--- a/src/window_texture.c
+++ b/src/window_texture.c
@@ -85,10 +85,6 @@ 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);