|
@@ -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();
|