Skip to content

Commit

Permalink
Merge pull request #116 from Tilka/misc_fixes_fix
Browse files Browse the repository at this point in the history
Fix the Windows build (broken in 315a8ba)
  • Loading branch information
delroth committed Mar 1, 2014
2 parents bc844a1 + 7c93f2d commit 0942bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/D3D/TextureCache.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/D3D/TextureCache.h
Expand Up @@ -35,7 +35,7 @@ class TextureCache : public ::TextureCache
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,
Expand Down

0 comments on commit 0942bda

Please sign in to comment.