Remove (almost) all references to pRenderer (#651)

Remove all references to pRenderer, except from the DebugDraw and LyShine Gems that are still being updated.
This commit is contained in:
bosnichd
2021-05-10 10:05:15 -06:00
committed by GitHub
parent 4a2e6a77b5
commit 440c40e490
191 changed files with 118 additions and 23548 deletions
@@ -258,28 +258,6 @@ void IDebugCallStack::WriteLineToLog(const char* format, ...)
}
}
void IDebugCallStack::Screenshot(const char* szFileName)
{
WriteLineToLog("Attempting to create error screenshot \"%s\"", szFileName);
static int g_numScreenshots = 0;
if (gEnv->pRenderer && !g_numScreenshots++)
{
if (gEnv->pRenderer->ScreenShot(szFileName))
{
WriteLineToLog("Successfully created screenshot.");
}
else
{
WriteLineToLog("Error creating screenshot.");
}
}
else
{
WriteLineToLog("Ignoring multiple calls to Screenshot");
}
}
//////////////////////////////////////////////////////////////////////////
void IDebugCallStack::StartMemLog()
{