mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
[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:
parent
e0b9e118a0
commit
4ff3ca104d
1 changed files with 2 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue