o3de_2.1.0.patch 818 B

12345678910111213
  1. diff --git a/Gems/Atom/RPI/Code/Source/RPI.Public/RPISystem.cpp b/Gems/Atom/RPI/Code/Source/RPI.Public/RPISystem.cpp
  2. index 99d0301016..3182cd319d 100644
  3. --- a/Gems/Atom/RPI/Code/Source/RPI.Public/RPISystem.cpp
  4. +++ b/Gems/Atom/RPI/Code/Source/RPI.Public/RPISystem.cpp
  5. @@ -297,7 +297,7 @@ namespace AZ
  6. }
  7. RHI::Ptr<RHI::XRDeviceDescriptor> xrDescriptor = m_rhiSystem.GetDevice()->BuildXRDescriptor();
  8. - auto result = xrRender->CreateDevice(xrDescriptor.get());
  9. + [[maybe_unused]] auto result = xrRender->CreateDevice(xrDescriptor.get());
  10. AZ_Error("RPISystem", result == RHI::ResultCode::Success, "Failed to initialize XR device");
  11. AZ::RHI::XRSessionDescriptor sessionDescriptor;
  12. result = xrRender->CreateSession(&sessionDescriptor);