Add support for building engine without logging
This commit is contained in:
@@ -101,8 +101,10 @@ bool GraphicsService::Init()
|
||||
PROFILE_MEM(Graphics);
|
||||
|
||||
// Create and initialize graphics device
|
||||
#if LOG_ENABLE
|
||||
Log::Logger::WriteFloor();
|
||||
LOG(Info, "Creating Graphics Device...");
|
||||
#endif
|
||||
PixelFormatExtensions::Init();
|
||||
GPUDevice* device = nullptr;
|
||||
|
||||
@@ -216,7 +218,9 @@ bool GraphicsService::Init()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#if LOG_ENABLE
|
||||
Log::Logger::WriteFloor();
|
||||
#endif
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user