Merge pull request #116 from Tilka/misc_fixes_fix

Fix the Windows build (broken in 315a8ba)
This commit is contained in:
Pierre Bourdon 2014-03-01 01:36:32 +01:00
commit 0942bdae1c
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ void TextureCache::TCacheEntry::Bind(unsigned int stage)
D3D::context->PSSetShaderResources(stage, 1, &texture->GetSRV());
}
bool TextureCache::TCacheEntry::Save(const std::string filename, unsigned int level)
bool TextureCache::TCacheEntry::Save(const std::string& filename, unsigned int level)
{
// TODO: Somehow implement this (D3DX11 doesn't support dumping individual LODs)
static bool warn_once = true;

View file

@ -35,7 +35,7 @@ private:
const float *colmat);
void Bind(unsigned int stage);
bool Save(const std::string filename, unsigned int level);
bool Save(const std::string& filename, unsigned int level);
};
TCacheEntryBase* CreateTexture(unsigned int width, unsigned int height,