Fix compiling SDL without emscripten.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@5513 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
32cef51975
commit
237111814f
|
@ -864,7 +864,7 @@ video::IVideoModeList* CIrrDeviceSDL::getVideoModeList()
|
|||
#ifdef _IRR_EMSCRIPTEN_PLATFORM_
|
||||
os::Printer::log("VideoModeList not available on the web." , ELL_WARNING);
|
||||
return VideoModeList;
|
||||
#elif // !_IRR_EMSCRIPTEN_PLATFORM_
|
||||
#else // !_IRR_EMSCRIPTEN_PLATFORM_
|
||||
if (!VideoModeList->getVideoModeCount())
|
||||
{
|
||||
// enumerate video modes.
|
||||
|
@ -893,7 +893,7 @@ void CIrrDeviceSDL::setResizable(bool resize)
|
|||
#ifdef _IRR_EMSCRIPTEN_PLATFORM_
|
||||
os::Printer::log("Resizable not available on the web." , ELL_WARNING);
|
||||
return;
|
||||
#elif // !_IRR_EMSCRIPTEN_PLATFORM_
|
||||
#else // !_IRR_EMSCRIPTEN_PLATFORM_
|
||||
if (resize != Resizable)
|
||||
{
|
||||
if (resize)
|
||||
|
|
Loading…
Reference in New Issue