summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 7e559d1b79..aa4bed5b7c 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -3618,9 +3618,10 @@ ImageManager::~ImageManager()
unload_textures();
}
-bool ImageManager::load_textures()
+bool ImageManager::load_textures(bool need_mips)
{
- GenericTexture::MipMapOptions mip = GenericTexture::MIPMAP_CREATE;
+ GenericTexture::MipMapOptions mip = need_mips ?
+ GenericTexture::MIPMAP_CREATE : GenericTexture::MIPMAP_NONE;
if (!m_textures[TEX_DUNGEON].load_texture("dngn.png", mip))
return (false);