diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-10 00:32:51 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-10 00:32:51 +0200 |
commit | 53557133c21205dab879365234727416977e8a4b (patch) | |
tree | 12043c848fd0b644c41ffc15834b95f4ac871e28 /src/utils.c | |
parent | 7f00ce22e7e86904e09f900422dfa591d045f447 (diff) |
Reapply "Fix screen and portal capture not working on some intel gpus"
This reverts commit 7f00ce22e7e86904e09f900422dfa591d045f447.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/utils.c b/src/utils.c index c625ecf..092f1a5 100644 --- a/src/utils.c +++ b/src/utils.c @@ -598,22 +598,11 @@ vec2i scale_keep_aspect_ratio(vec2i from, vec2i to) { } unsigned int gl_create_texture(gsr_egl *egl, int width, int height, int internal_format, unsigned int format, int filter) { - float border_color[4] = { 0.0f, 0.0f, 0.0f, 1.0f }; - if(format == GL_RG) { // UV - border_color[0] = 0.5f; - border_color[1] = 0.5f; - border_color[2] = 0.0f; - border_color[3] = 1.0f; - } - unsigned int texture_id = 0; egl->glGenTextures(1, &texture_id); egl->glBindTexture(GL_TEXTURE_2D, texture_id); egl->glTexImage2D(GL_TEXTURE_2D, 0, internal_format, width, height, 0, format, GL_UNSIGNED_BYTE, NULL); - egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER); - egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER); - egl->glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, border_color); egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter); egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter); |