mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Fix incorrect usage of bit_ceil()
This commit is contained in:
parent
a6fbd0fe69
commit
2033f813da
|
@ -4456,7 +4456,7 @@ bool GSRendererHW::CanUseTexIsFB(const GSTextureCache::Target* rt, const GSTextu
|
|||
}
|
||||
else if (clamp == CLAMP_REGION_REPEAT)
|
||||
{
|
||||
const u32 req_tbits = (tmax > 1) ? std::bit_ceil(static_cast<u32>(tmax - 1) - 1) : 0x1;
|
||||
const u32 req_tbits = (tmax > 1) ? (std::bit_ceil(static_cast<u32>(tmax - 1)) - 1) : 0x1;
|
||||
if ((min & req_tbits) != req_tbits)
|
||||
{
|
||||
GL_CACHE("Can't use tex-is-fb because of REGION_REPEAT [%d, %d] with TMM of [%d, %d] and tbits of %d",
|
||||
|
|
Loading…
Reference in New Issue