mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Fix clamping of background image
This commit is contained in:
@@ -143,8 +143,12 @@ send_image_to_gpu(GLuint *tex_id, const void* data, GLsizei width, GLsizei heigh
|
|||||||
switch (repeat) {
|
switch (repeat) {
|
||||||
case REPEAT_MIRROR:
|
case REPEAT_MIRROR:
|
||||||
r = GL_MIRRORED_REPEAT; break;
|
r = GL_MIRRORED_REPEAT; break;
|
||||||
case REPEAT_CLAMP:
|
case REPEAT_CLAMP: {
|
||||||
r = GL_CLAMP_TO_EDGE; break;
|
static const GLfloat border_color[4] = {0};
|
||||||
|
glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, border_color);
|
||||||
|
r = GL_CLAMP_TO_BORDER;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
r = GL_REPEAT;
|
r = GL_REPEAT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user