Fix release build errors on Linux/Mac (#4474)

* - Fix unused release warnings
- Fixed compile errors from missing includes
- Commented out missing AZ_ATOM_PROFILE_FUNCTION macro

Signed-off-by: Steve Pham <spham@amazon.com>

* Deleted AZ_ATOM_PROFILE_FUNCTION

Signed-off-by: Steve Pham <spham@amazon.com>

* Adding more unused errors from windows release build, and updates based on PR suggestions

Signed-off-by: Steve Pham <spham@amazon.com>
This commit is contained in:
Steve Pham
2021-10-04 11:57:39 -07:00
committed by GitHub
parent 6c3ac70531
commit 6dcdb5787a
8 changed files with 17 additions and 12 deletions
@@ -201,7 +201,6 @@ namespace AZ
void HairFeatureProcessor::Simulate(const FeatureProcessor::SimulatePacket& packet)
{
AZ_PROFILE_FUNCTION(AzRender);
AZ_ATOM_PROFILE_FUNCTION("Hair", "HairFeatureProcessor: Simulate");
AZ_UNUSED(packet);
if (m_hairRenderObjects.empty())
@@ -250,7 +249,6 @@ namespace AZ
void HairFeatureProcessor::Render([[maybe_unused]] const FeatureProcessor::RenderPacket& packet)
{
AZ_PROFILE_FUNCTION(AzRender);
AZ_ATOM_PROFILE_FUNCTION("Hair", "HairFeatureProcessor: Render");
if (!m_initialized || !m_addDispatchEnabled)
{ // Skip adding dispatches / Draw packets for this frame until initialized and the shaders are ready