Permalink
Browse files

TexCache: Warning fix.

  • Loading branch information...
unknownbrackets committed Nov 6, 2017
1 parent de459e6 commit 1f33907f20439d62f757f9e0557aa5b533b76630
Showing with 1 addition and 1 deletion.
  1. +1 −1 GPU/Common/TextureCacheCommon.cpp
@@ -705,7 +705,7 @@ bool TextureCacheCommon::AttachFramebuffer(TexCacheEntry *entry, u32 address, Vi
}
// Check if it's in bufferWidth (which might be higher than width and may indicate the framebuffer includes the data.)
if (fbInfo.xOffset >= framebuffer->bufferWidth && fbInfo.xOffset + w <= framebuffer->fb_stride) {
if (fbInfo.xOffset >= framebuffer->bufferWidth && fbInfo.xOffset + w <= (u32)framebuffer->fb_stride) {
// This happens in Brave Story, see #10045 - the texture is in the space between strides, with matching stride.
DetachFramebuffer(entry, address, framebuffer);
return false;

0 comments on commit 1f33907

Please sign in to comment.