First pass to remove AtomShim
Removed CryRenderAtomShim folder from Gems/AtomLyIntegration/CMakeLists.txt Set LOAD_LEGACY_RENDERER_FOR_EDITOR to false
This commit is contained in:
@@ -247,7 +247,7 @@ CUNIXConsole* pUnixConsole;
|
||||
|
||||
#define LOCALIZATION_TRANSLATIONS_LIST_FILE_NAME "Libs/Localization/localization.xml"
|
||||
|
||||
#define LOAD_LEGACY_RENDERER_FOR_EDITOR true // If you set this to false you must for now also set 'ed_useAtomNativeViewport' to true (see /Code/Sandbox/Editor/ViewManager.cpp)
|
||||
#define LOAD_LEGACY_RENDERER_FOR_EDITOR false // If you set this to false you must for now also set 'ed_useAtomNativeViewport' to true (see /Code/Sandbox/Editor/ViewManager.cpp)
|
||||
#define LOAD_LEGACY_RENDERER_FOR_LAUNCHER false
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@@ -1294,7 +1294,7 @@ bool CSystem::OpenRenderLibrary(int type, const SSystemInitParams& initParams)
|
||||
const char* libname = "";
|
||||
if (AZ::Interface<AzFramework::AtomActiveInterface>::Get())
|
||||
{
|
||||
libname = "CryRenderOther";
|
||||
libname = DLL_RENDERER_NULL;
|
||||
}
|
||||
else if (type == R_DX9_RENDERER)
|
||||
{
|
||||
|
||||
@@ -170,26 +170,26 @@ void CTextureManager::LoadDefaultTextures()
|
||||
|
||||
// Loop over the appropriate texture list and load the textures, storing them in a map keyed by texture name.
|
||||
// Use reduced subset of textures for Other.
|
||||
if (AZ::Interface<AzFramework::AtomActiveInterface>::Get())
|
||||
{
|
||||
for (const TextureEntry& entry : texturesFromFileReduced)
|
||||
{
|
||||
// Use EF_LoadTexture rather than CTexture::ForName
|
||||
CTexture* pNewTexture = static_cast<CTexture*>(gEnv->pRenderer->EF_LoadTexture(entry.szFileName, entry.flags));
|
||||
if (pNewTexture)
|
||||
{
|
||||
CCryNameTSCRC texEntry(entry.szTextureName);
|
||||
m_DefaultTextures[texEntry] = pNewTexture;
|
||||
}
|
||||
else
|
||||
{
|
||||
AZ_Assert(false, "Error - CTextureManager failed to load default texture %s", entry.szFileName);
|
||||
AZ_Warning("[Shaders System]", false, "Error - CTextureManager failed to load default texture %s", entry.szFileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//if (AZ::Interface<AzFramework::AtomActiveInterface>::Get())
|
||||
//{
|
||||
// for (const TextureEntry& entry : texturesFromFileReduced)
|
||||
// {
|
||||
// // Use EF_LoadTexture rather than CTexture::ForName
|
||||
// CTexture* pNewTexture = static_cast<CTexture*>(gEnv->pRenderer->EF_LoadTexture(entry.szFileName, entry.flags));
|
||||
// if (pNewTexture)
|
||||
// {
|
||||
// CCryNameTSCRC texEntry(entry.szTextureName);
|
||||
// m_DefaultTextures[texEntry] = pNewTexture;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// AZ_Assert(false, "Error - CTextureManager failed to load default texture %s", entry.szFileName);
|
||||
// AZ_Warning("[Shaders System]", false, "Error - CTextureManager failed to load default texture %s", entry.szFileName);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
for (const TextureEntry& entry : texturesFromFile)
|
||||
{
|
||||
CTexture* pNewTexture = CTexture::ForName(entry.szFileName, entry.flags, eTF_Unknown);
|
||||
@@ -204,7 +204,7 @@ void CTextureManager::LoadDefaultTextures()
|
||||
AZ_Warning("[Shaders System]", false, "Error - CTextureManager failed to load default texture %s", entry.szFileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
m_texNoTexture = GetDefaultTexture("NoTexture");
|
||||
m_texNoTextureCM = GetDefaultTexture("NoTextureCM");
|
||||
|
||||
Reference in New Issue
Block a user