Browse Source

Using NEAREST filter instead of LINEAR on theme textures to fix blurry borders.

Adam Blake 12 years ago
parent
commit
a8ffbed283
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gameplay/src/Theme.cpp

+ 1 - 0
gameplay/src/Theme.cpp

@@ -91,6 +91,7 @@ Theme* Theme::create(const char* url)
     const char* textureFile = themeProperties->getString("texture");
     theme->_texture = Texture::create(textureFile, false);
     GP_ASSERT(theme->_texture);
+    theme->_texture->setFilterMode(Texture::NEAREST, Texture::NEAREST);
     theme->_spriteBatch = SpriteBatch::create(theme->_texture);
     GP_ASSERT(theme->_spriteBatch);