Integrating github/staging through commit ab87ed9

This commit is contained in:
alexpete
2021-04-09 11:27:37 -07:00
parent ae62a97894
commit 1044dc3da1
1582 changed files with 29374 additions and 519051 deletions
@@ -320,7 +320,6 @@ void CShaderSerialize::ClearSResourceCache()
bool CShaderSerialize::DoesSResourceExist(CShader* pSH)
{
SSShaderRes* pSR = NULL;
stack_string shaderName = pSH->GetName();
shaderName += "_GLOBAL";
CCryNameTSCRC SName = CCryNameTSCRC(shaderName.c_str());
@@ -569,7 +568,6 @@ bool CShaderSerialize::ExportShader(CShader* pSH, CShaderManBin& binShaderMgr)
pOpenDir->nSize = de.size;
//Preserve modification time
uint64 modTime = pSR->m_pRes[CACHE_USER]->mfGetModifTime();
pSR->m_pRes[CACHE_USER]->mfFlush();
@@ -670,7 +668,7 @@ CShaderSerialize::ShaderImportResults CShaderSerialize::ImportShader(CShader* pS
gRenDev->m_RP.m_pShader = pSH;
assert(gRenDev->m_RP.m_pShader != 0);
int nSize = pRes->mfFileRead(pDE);
pRes->mfFileRead(pDE);
byte* pData = (byte*)pRes->mfFileGetBuf(pDE);
if (!pData)
{