Commit 9aed8f85 authored by D-AIRY's avatar D-AIRY

small fix

parent 6b182327
......@@ -458,8 +458,11 @@ GameData::GameData(HWND hWnd, bool isGame):
m_pLightSystem = (IXLightSystem*)Core_GetIXCore()->getPluginManager()->getInterface(IXLIGHTSYSTEM_GUID);
IXLightSun *pSun = m_pLightSystem->createSun();
pSun->setColor(float3(0.0f, 1.0f, 0.0f));
if(m_pLightSystem)
{
IXLightSun *pSun = m_pLightSystem->createSun();
pSun->setColor(float3(0.0f, 1.0f, 0.0f));
}
g_pAsyncTaskRunner = Core_GetIXCore()->getAsyncTaskRunner();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment