mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
...
This commit is contained in:
@@ -72,6 +72,8 @@ class Sprites:
|
|||||||
tgt = GL_TEXTURE_2D_ARRAY
|
tgt = GL_TEXTURE_2D_ARRAY
|
||||||
tex = glGenTextures(1)
|
tex = glGenTextures(1)
|
||||||
glBindTexture(tgt, tex)
|
glBindTexture(tgt, tex)
|
||||||
|
# We use GL_NEAREST otherwise glyphs that touch the edge of the cell
|
||||||
|
# often show a border between cells
|
||||||
glTexParameteri(tgt, GL_TEXTURE_MIN_FILTER, GL_NEAREST)
|
glTexParameteri(tgt, GL_TEXTURE_MIN_FILTER, GL_NEAREST)
|
||||||
glTexParameteri(tgt, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
|
glTexParameteri(tgt, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
|
||||||
glTexParameteri(tgt, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
|
glTexParameteri(tgt, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
|
||||||
|
|||||||
Reference in New Issue
Block a user