diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index a685b36f10..76fd834c40 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -226,7 +226,7 @@ namespace rsx if (external_subresource_desc.op != deferred_request_command::atlas_gather) return true; - const int target_area = (external_subresource_desc.width * external_subresource_desc.height * threshold) / 100; + const int target_area = (external_subresource_desc.width * external_subresource_desc.height * external_subresource_desc.depth * threshold) / 100; int covered_area = 0; areai bbox{smax, smax, 0, 0};