Skip to content

Commit

Permalink
Reversed the Aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
kjpou1 committed Aug 9, 2013
1 parent 795a7f7 commit cfffc16
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions cocos2d/textures/CCTexture2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
};

}

Expand Down

0 comments on commit cfffc16

Please sign in to comment.