PostProcessing: Compile warning fix

pull/3350/head
Stenzek 11 months ago
parent f9bb413a40
commit 52e6e8ff1e
No known key found for this signature in database

@ -693,7 +693,7 @@ GPUDevice::PresentResult PostProcessing::Chain::Apply(GPUTexture* input_color, G
draw_final_target = GetTextureUnusedAtEndOfChain(); 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) for (const std::unique_ptr<Shader>& stage : m_stages)
{ {
const bool is_final = (stage.get() == m_stages.back().get()); const bool is_final = (stage.get() == m_stages.back().get());

Loading…
Cancel
Save