|
@@ -199,13 +199,15 @@ namespace oxygine
|
|
|
{
|
|
{
|
|
|
void lostContext()
|
|
void lostContext()
|
|
|
{
|
|
{
|
|
|
|
|
+#if OXYGINE_SDL
|
|
|
return;
|
|
return;
|
|
|
|
|
+
|
|
|
log::messageln("lost context");
|
|
log::messageln("lost context");
|
|
|
-#if 1
|
|
|
|
|
|
|
+
|
|
|
SDL_GL_DeleteContext(_context);
|
|
SDL_GL_DeleteContext(_context);
|
|
|
_context = SDL_GL_CreateContext(_window);
|
|
_context = SDL_GL_CreateContext(_window);
|
|
|
initGLExtensions();
|
|
initGLExtensions();
|
|
|
-#endif
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
IVideoDriver::instance->restore();
|
|
IVideoDriver::instance->restore();
|
|
|
Renderer::initialize();
|
|
Renderer::initialize();
|
|
@@ -214,6 +216,7 @@ namespace oxygine
|
|
|
getRoot()->dispatchEvent(&ev);
|
|
getRoot()->dispatchEvent(&ev);
|
|
|
|
|
|
|
|
Restorable::restoreAll();
|
|
Restorable::restoreAll();
|
|
|
|
|
+#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void init(init_desc *desc_ptr)
|
|
void init(init_desc *desc_ptr)
|