From cfffc160c7c8f2b045b8c5e69662503621069226 Mon Sep 17 00:00:00 2001 From: kjpou1 Date: Fri, 9 Aug 2013 07:38:18 +0200 Subject: [PATCH] Reversed the Aliasing --- cocos2d/textures/CCTexture2D.cs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/cocos2d/textures/CCTexture2D.cs b/cocos2d/textures/CCTexture2D.cs index b5fc3c8f..7205eb23 100644 --- a/cocos2d/textures/CCTexture2D.cs +++ b/cocos2d/textures/CCTexture2D.cs @@ -69,7 +69,7 @@ public class CCTexture2D : CCGraphicsResource public CCTexture2D() { m_samplerState = SamplerState.LinearClamp; - m_bAntialiased = true; + IsAntialiased = false; // We will set this to false by default } public bool IsTextureDefined @@ -163,24 +163,24 @@ public bool IsAntialiased if (m_bAntialiased) { - m_samplerState = new SamplerState - { - Filter = TextureFilter.Linear, - AddressU = saveState.AddressU, - AddressV = saveState.AddressV, - AddressW = saveState.AddressW - }; + m_samplerState = new SamplerState + { + Filter = TextureFilter.Point, + AddressU = saveState.AddressU, + AddressV = saveState.AddressV, + AddressW = saveState.AddressW + }; } else { - m_samplerState = new SamplerState - { - Filter = TextureFilter.Point, - AddressU = saveState.AddressU, - AddressV = saveState.AddressV, - AddressW = saveState.AddressW - }; + m_samplerState = new SamplerState + { + Filter = TextureFilter.Linear, + AddressU = saveState.AddressU, + AddressV = saveState.AddressV, + AddressW = saveState.AddressW + }; }