diff --git a/src/renderer/atlas/BackendD3D.cpp b/src/renderer/atlas/BackendD3D.cpp index 5602fdd750..ef9e035323 100644 --- a/src/renderer/atlas/BackendD3D.cpp +++ b/src/renderer/atlas/BackendD3D.cpp @@ -2329,7 +2329,7 @@ void BackendD3D::_executeCustomShader(RenderingPayload& p) { // See the comment in _recreateCustomShader() which initializes the two members below and explains what they do. const auto now = queryPerfCount(); - const auto time = static_cast(now % _customShaderPerfTickMod) * _customShaderSecsPerPerfTick; + const auto time = (now % _customShaderPerfTickMod) * _customShaderSecsPerPerfTick; const CustomConstBuffer data{ .time = time,