|
|
@ -58,7 +58,7 @@ bool CNELU::initDriver (uint w, uint h, uint bpp, bool windowed, nlWindow syst
|
|
|
|
CNELU::Driver = NULL;
|
|
|
|
CNELU::Driver = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// Init driver.
|
|
|
|
// Init driver.
|
|
|
|
#if defined(NL_OS_WINDOWS)
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
if (direct3d)
|
|
|
|
if (direct3d)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CNELU::Driver= CDRU::createD3DDriver();
|
|
|
|
CNELU::Driver= CDRU::createD3DDriver();
|
|
|
@ -75,6 +75,7 @@ bool CNELU::initDriver (uint w, uint h, uint bpp, bool windowed, nlWindow syst
|
|
|
|
nlwarning ("CNELU::initDriver: no driver found");
|
|
|
|
nlwarning ("CNELU::initDriver: no driver found");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!CNELU::Driver->init())
|
|
|
|
if (!CNELU::Driver->init())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlwarning ("CNELU::initDriver: init() failed");
|
|
|
|
nlwarning ("CNELU::initDriver: init() failed");
|
|
|
|