Merge pull request #449 from refractionpcsx2/gs_mip_lod_limit

GS: Remove 8bit cast on LOD values
This commit is contained in:
PSISP 2020-08-04 01:48:38 -04:00 committed by GitHub
commit 1d8394f4fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3551,7 +3551,7 @@ void GraphicsSynthesizerThread::calculate_LOD(TexLookupInfo &info)
}
//Determine mipmap level
info.mipmap_level = min((int8_t)info.LOD, (int8_t)current_ctx->tex1.max_MIP_level);
info.mipmap_level = min((int32_t)info.LOD, (int32_t)current_ctx->tex1.max_MIP_level);
if (info.mipmap_level < 0)
info.mipmap_level = 0;