瀏覽代碼

Merge pull request #378 from aws-lumberyard-dev/ASV/antonmic/MacBuildFix

Tentative Mac build fix for ASV
antonmic 3 年之前
父節點
當前提交
76d8d11dcd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Gem/Code/Source/ReadbackExampleComponent.cpp

+ 2 - 2
Gem/Code/Source/ReadbackExampleComponent.cpp

@@ -330,9 +330,9 @@ namespace AtomSampleViewer
                 ImGui::Text("Readback statistics");
                 ImGui::Text("Readback statistics");
                 ImGui::NewLine();
                 ImGui::NewLine();
                 ImGui::Text("Name: %s", m_readbackStat.m_name.GetCStr());
                 ImGui::Text("Name: %s", m_readbackStat.m_name.GetCStr());
-                ImGui::Text("Bytes read: %i", m_readbackStat.m_bytesRead);
+                ImGui::Text("Bytes read: %zu", m_readbackStat.m_bytesRead);
                 ImGui::Text("[%i; %i; %i]", m_readbackStat.m_descriptor.m_size.m_width, m_readbackStat.m_descriptor.m_size.m_height, m_readbackStat.m_descriptor.m_size.m_depth);
                 ImGui::Text("[%i; %i; %i]", m_readbackStat.m_descriptor.m_size.m_width, m_readbackStat.m_descriptor.m_size.m_height, m_readbackStat.m_descriptor.m_size.m_depth);
-                ImGui::Text(AZ::RHI::ToString(m_readbackStat.m_descriptor.m_format));
+                ImGui::Text("%s", AZ::RHI::ToString(m_readbackStat.m_descriptor.m_format));
 
 
             }
             }