Permalink
Browse files

Add a comment, revert a reporting change.

  • Loading branch information...
hrydgard committed Dec 9, 2017
1 parent 8d5c85f commit 299cb007c2cbead4cf07d48af0754e1e6873b2e3
Showing with 4 additions and 1 deletion.
  1. +3 −0 GPU/Common/TextureCacheCommon.cpp
  2. +1 −1 GPU/GLES/TextureCacheGLES.cpp
@@ -328,6 +328,9 @@ void TextureCacheCommon::SetTexture(bool force) {
TexCache::iterator iter = cache_.find(cachekey);
TexCacheEntry *entry = nullptr;
// Note: It's necessary to reset needshadertexclamp, for otherwise DIRTY_TEXCLAMP won't get set later.
// Should probably revisit how this works..
gstate_c.SetNeedShaderTexclamp(false);
gstate_c.skipDrawReason &= ~SKIPDRAW_BAD_FB_TEXTURE;
if (gstate_c.bgraTexture != isBgraBackend_) {
@@ -930,7 +930,7 @@ void TextureCacheGLES::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &r
// TODO: We really, really should avoid calling glGetError.
GLenum err = glGetError();
if (err == GL_OUT_OF_MEMORY) {
WARN_LOG(G3D, "Texture cache ran out of GPU memory; switching to low memory mode");
WARN_LOG_REPORT(G3D, "Texture cache ran out of GPU memory; switching to low memory mode");
lowMemoryMode_ = true;
decimationCounter_ = 0;
Decimate();

0 comments on commit 299cb00

Please sign in to comment.