diff --git a/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp b/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp index 05a6b9d06f..effc3e9ab0 100644 --- a/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp @@ -206,7 +206,7 @@ error_code cellVideoOutGetGamma(u32 videoOut, vm::ptr gamma) return CELL_VIDEO_OUT_ERROR_UNSUPPORTED_VIDEO_OUT; } - auto& conf = g_fxo->get(); + const auto& conf = g_fxo->get(); *gamma = conf.gamma; diff --git a/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp b/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp index 6d13e24356..9a16d7723d 100644 --- a/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp @@ -119,7 +119,7 @@ error_code cellVideoOutGetState(u32 videoOut, u32 deviceIndex, vm::ptrget(); + const auto& conf = g_fxo->get(); state->state = CELL_VIDEO_OUT_OUTPUT_STATE_ENABLED; state->colorSpace = CELL_VIDEO_OUT_COLOR_SPACE_RGB; state->displayMode.resolutionId = conf.state ? conf.resolution_id : g_video_out_resolution_id.at(g_cfg.video.resolution); @@ -224,7 +224,7 @@ error_code cellVideoOutGetConfiguration(u32 videoOut, vm::ptrget(); conf.state) + if (const auto& conf = g_fxo->get(); conf.state) { config->resolutionId = conf.resolution_id; config->format = conf.format; diff --git a/rpcs3/Emu/RSX/GL/GLPresent.cpp b/rpcs3/Emu/RSX/GL/GLPresent.cpp index 98bcf9ac5a..c58a9c3120 100644 --- a/rpcs3/Emu/RSX/GL/GLPresent.cpp +++ b/rpcs3/Emu/RSX/GL/GLPresent.cpp @@ -129,7 +129,7 @@ void GLGSRender::flip(const rsx::display_flip_info_t& info) u32 buffer_pitch = display_buffers[info.buffer].pitch; u32 av_format; - auto& avconfig = g_fxo->get(); + const auto& avconfig = g_fxo->get(); if (avconfig.state) { diff --git a/rpcs3/Emu/RSX/VK/VKPresent.cpp b/rpcs3/Emu/RSX/VK/VKPresent.cpp index a393029ae9..a577a49957 100644 --- a/rpcs3/Emu/RSX/VK/VKPresent.cpp +++ b/rpcs3/Emu/RSX/VK/VKPresent.cpp @@ -446,7 +446,7 @@ void VKGSRender::flip(const rsx::display_flip_info_t& info) u32 buffer_pitch = display_buffers[info.buffer].pitch; u32 av_format; - auto& avconfig = g_fxo->get(); + const auto& avconfig = g_fxo->get(); if (avconfig.state) {