PostProcessing: Compile warning fix

This commit is contained in:
Stenzek 2025-01-03 18:19:12 +10:00
parent f9bb413a40
commit 52e6e8ff1e
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -693,7 +693,7 @@ GPUDevice::PresentResult PostProcessing::Chain::Apply(GPUTexture* input_color, G
draw_final_target = GetTextureUnusedAtEndOfChain();
}
const float time = Timer::ConvertValueToSeconds(Timer::GetCurrentValue() - s_start_time);
const float time = static_cast<float>(Timer::ConvertValueToSeconds(Timer::GetCurrentValue() - s_start_time));
for (const std::unique_ptr<Shader>& stage : m_stages)
{
const bool is_final = (stage.get() == m_stages.back().get());