Sfoglia il codice sorgente

Addressing PR feedback

Signed-off-by: antonmic <[email protected]>
antonmic 2 anni fa
parent
commit
c2a649d24a

+ 1 - 1
Gems/Atom/RPI/Code/Source/RPI.Public/Pass/RasterPass.cpp

@@ -137,7 +137,7 @@ namespace AZ
                 u32 targetWidth = target.GetAttachment()->m_descriptor.m_image.m_size.m_width;
                 u32 targetWidth = target.GetAttachment()->m_descriptor.m_image.m_size.m_width;
                 u32 targetHeight = target.GetAttachment()->m_descriptor.m_image.m_size.m_height;
                 u32 targetHeight = target.GetAttachment()->m_descriptor.m_image.m_size.m_height;
                 m_scissorState = RHI::Scissor(0, 0, targetWidth, targetHeight);
                 m_scissorState = RHI::Scissor(0, 0, targetWidth, targetHeight);
-                m_viewportState = RHI::Viewport(0, (float)targetWidth, 0, (float)targetHeight);
+                m_viewportState = RHI::Viewport(0, static_cast<float>(targetWidth), 0, static_cast<float>(targetHeight));
             }
             }
             else
             else
             {
             {