mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-29 09:58:05 +00:00
Refining fix
This commit is contained in:
@@ -369,7 +369,7 @@ void TranslateResolutionInfo(ResolutionSetup setup, ResolutionScalingInfo& info)
|
||||
}
|
||||
info.up_factor = static_cast<f32>(info.up_scale) / (1U << info.down_shift);
|
||||
info.down_factor = static_cast<f32>(1U << info.down_shift) / info.up_scale;
|
||||
info.active = true;
|
||||
info.active = info.up_scale != 1 || info.down_shift != 0;
|
||||
}
|
||||
|
||||
void UpdateRescalingInfo() {
|
||||
|
||||
@@ -2440,7 +2440,6 @@ bool Image::ScaleUp(bool ignore) {
|
||||
runtime->ViewFormats(info.format));
|
||||
ignore = false;
|
||||
}
|
||||
ignore = true;
|
||||
current_image = &Image::scaled_image;
|
||||
if (ignore) {
|
||||
return true;
|
||||
@@ -2469,7 +2468,6 @@ bool Image::ScaleDown(bool ignore) {
|
||||
}
|
||||
ASSERT(info.type != ImageType::Linear);
|
||||
flags &= ~ImageFlagBits::Rescaled;
|
||||
ignore = true;
|
||||
current_image = &Image::original_image;
|
||||
if (ignore) {
|
||||
return true;
|
||||
|
||||
@@ -1122,6 +1122,11 @@ void TextureCache<P>::RefreshContents(Image& image, ImageId image_id) {
|
||||
|
||||
TrackImage(image, image_id);
|
||||
|
||||
if (True(image.flags & ImageFlagBits::GpuModified) && image.info.rescaleable) {
|
||||
runtime.TransitionImageLayout(image);
|
||||
return;
|
||||
}
|
||||
|
||||
if (image.info.num_samples > 1 && !runtime.CanUploadMSAA()) {
|
||||
LOG_WARNING(HW_GPU, "MSAA image uploads are not implemented");
|
||||
runtime.TransitionImageLayout(image);
|
||||
|
||||
Reference in New Issue
Block a user