Rever accidentally checked-in changes for SDL_Flags (was not tested yet and not yet working).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@5505 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2017-07-18 18:24:31 +00:00
parent bad05c903d
commit 854cdd5573
1 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
SDL_Flags |= SDL_DOUBLEBUF;
#ifdef _IRR_EMSCRIPTEN_PLATFORM_
else
SDL_Flags = SDL_OPENGL | SDL_HWSURFACE;
SDL_Flags = SDL_SWSURFACE;
#endif //_IRR_EMSCRIPTEN_PLATFORM_
// create window
@ -219,7 +219,7 @@ bool CIrrDeviceSDL::createWindow()
Width = w;
Height = h;
}
Screen = SDL_SetVideoMode( 0, 0, 32, SDL_Flags); // 0,0 will use the canvas size
Screen = SDL_SetVideoMode( 0, 0, 32, SDL_OPENGL); // 0,0 will use the canvas size
// "#canvas" is for the opengl context
emscripten_set_mousedown_callback("#canvas", (void*)this, true, MouseUpDownCallback);
@ -577,7 +577,7 @@ bool CIrrDeviceSDL::run()
Height = SDL_event.resize.h;
#ifdef _IRR_EMSCRIPTEN_PLATFORM_
emscripten_set_canvas_size( Width, Height);
Screen = SDL_SetVideoMode( 0, 0, 32, SDL_Flags ); // 0,0 will use the canvas size
Screen = SDL_SetVideoMode( 0, 0, 32, SDL_OPENGL ); // 0,0 will use the canvas size
#else //_IRR_EMSCRIPTEN_PLATFORM_
Screen = SDL_SetVideoMode( Width, Height, 0, SDL_Flags );
#endif //_IRR_EMSCRIPTEN_PLATFOR