Use texture clamping to enhance GUI look
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4407 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
72c8240bfc
commit
dd9fedd810
@ -177,7 +177,13 @@ void IrrDriver::initDevice()
|
||||
|
||||
#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR >= 7)
|
||||
video::SMaterial& material2D = m_video_driver->getMaterial2D();
|
||||
material2D.TextureLayer[0].BilinearFilter=true;
|
||||
for (int n=0; n<MATERIAL_MAX_TEXTURES; n++)
|
||||
{
|
||||
material2D.TextureLayer[n].BilinearFilter = true;
|
||||
//material2D.TextureLayer[n].TextureWrap = ETC_CLAMP_TO_EDGE;
|
||||
material2D.TextureLayer[n].TextureWrapU = ETC_CLAMP_TO_EDGE;
|
||||
material2D.TextureLayer[n].TextureWrapV = ETC_CLAMP_TO_EDGE;
|
||||
}
|
||||
material2D.AntiAliasing=video::EAAM_FULL_BASIC;
|
||||
//m_video_driver->enableMaterial2D();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user