Crash fixes in LyShine with pRenderer being nullptr now (#496)

This commit is contained in:
Terry Michaels
2021-04-30 19:41:46 -05:00
committed by GitHub
parent 7a2f698bbc
commit 3eed53fa27
3 changed files with 2 additions and 11 deletions
@@ -97,7 +97,8 @@ namespace LyShineExamples
if (!texture)
{
// if there is no texture we will just use a white texture
texture = gEnv->pRenderer->EF_GetTextureByID(gEnv->pRenderer->GetWhiteTextureId());
// TODO: Get a default atom texture here when possible
//texture = gEnv->pRenderer->EF_GetTextureByID(gEnv->pRenderer->GetWhiteTextureId());
}
if (m_isRenderCacheDirty)