1
0
Fork 0
forked from fte/fteqw

crosshair uses nearest instead of linear sampling. Linear was making it disappear half the time, so..

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@566 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-12-05 08:28:47 +00:00
parent 7acdaa8779
commit e02bbec528

View file

@ -1266,6 +1266,8 @@ void GLDraw_Crosshair(void)
#undef Pix #undef Pix
cachedcrosshair = crosshair.value; cachedcrosshair = crosshair.value;
} }
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
} }
else if ((*crosshair.string>='a' && *crosshair.string<='z') || (*crosshair.string>='A' && *crosshair.string<='Z')) else if ((*crosshair.string>='a' && *crosshair.string<='z') || (*crosshair.string>='A' && *crosshair.string<='Z'))
{ {