do the rounding in the if, shouldn't cause trouble afaik. (pso kept spamming logs under, cause xfblines was 574.205566)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3851 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
1157055ec6
commit
d703b01f0c
|
@ -214,9 +214,9 @@ void BPWritten(const Bypass& bp)
|
||||||
yScale = (float)bpmem.dispcopyyscale / 256.0f;
|
yScale = (float)bpmem.dispcopyyscale / 256.0f;
|
||||||
|
|
||||||
float xfbLines = ((bpmem.copyTexSrcWH.y + 1.0f) * yScale);
|
float xfbLines = ((bpmem.copyTexSrcWH.y + 1.0f) * yScale);
|
||||||
if (xfbLines > MAX_XFB_HEIGHT)
|
if ((u32)xfbLines > MAX_XFB_HEIGHT)
|
||||||
{
|
{
|
||||||
WARN_LOG(VIDEO, "Tried to scale EFB to too many XFB lines (%u)", (u32)xfbLines);
|
WARN_LOG(VIDEO, "Tried to scale EFB to too many XFB lines (%f)", xfbLines);
|
||||||
xfbLines = MAX_XFB_HEIGHT;
|
xfbLines = MAX_XFB_HEIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue