[gl] Make conchars use nearest sampling

Linear sampling in a texture atlas (which is what conchars is) requires
the use of border pixels to avoid pixel leakage.
This commit is contained in:
Bill Currie 2022-11-20 01:21:45 +09:00
parent e0b9e118a0
commit 4ff3ca104d

View file

@ -392,6 +392,8 @@ gl_Draw_Init (void)
width = 128;
height = 128;
}
qfglTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
qfglTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
// initialize the character cell texture coordinates.
for (i = 0; i < 256; i++) {