Selaa lähdekoodia

Minor theme fix.

Steve Grenier 12 vuotta sitten
vanhempi
sitoutus
4cc20b0733
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      gameplay/src/Theme.cpp

+ 1 - 1
gameplay/src/Theme.cpp

@@ -91,9 +91,9 @@ Theme* Theme::create(const char* url)
     const char* textureFile = themeProperties->getString("texture");
     const char* textureFile = themeProperties->getString("texture");
     theme->_texture = Texture::create(textureFile, false);
     theme->_texture = Texture::create(textureFile, false);
     GP_ASSERT(theme->_texture);
     GP_ASSERT(theme->_texture);
-    theme->_texture->setFilterMode(Texture::NEAREST, Texture::NEAREST);
     theme->_spriteBatch = SpriteBatch::create(theme->_texture);
     theme->_spriteBatch = SpriteBatch::create(theme->_texture);
     GP_ASSERT(theme->_spriteBatch);
     GP_ASSERT(theme->_spriteBatch);
+    theme->_spriteBatch->getSampler()->setFilterMode(Texture::NEAREST, Texture::NEAREST);
 
 
     float tw = 1.0f / theme->_texture->getWidth();
     float tw = 1.0f / theme->_texture->getWidth();
     float th = 1.0f / theme->_texture->getHeight();
     float th = 1.0f / theme->_texture->getHeight();