Denis Muratshin 12 years ago
parent
commit
80d4a43cd6
4 changed files with 8 additions and 4 deletions
  1. 2 2
      .hg_archival.txt
  2. BIN
      doc.zip
  3. 1 0
      oxygine/src/core/gl/VideoDriverGLES11.h
  4. 5 2
      oxygine/src/core/oxygine.cpp

+ 2 - 2
.hg_archival.txt

@@ -1,5 +1,5 @@
 repo: b6d71054df5712e643a0685bc3ba54b123db5729
-node: 16d738a2ec3040e2c1dcfa788c7439688936633a
+node: c347162bc0cda461cf21871991cd7b38ef7b5e7b
 branch: default
 latesttag: null
-latesttagdistance: 212
+latesttagdistance: 213

BIN
doc.zip


+ 1 - 0
oxygine/src/core/gl/VideoDriverGLES11.h

@@ -11,6 +11,7 @@ namespace oxygine
 		~VideoDriverGLES11();
 
 		spNativeTexture createTexture();
+		void restore(){}
 
 		void begin(const Matrix &proj, const Matrix &view, const Rect &viewport, const Color *clearColor);
 		

+ 5 - 2
oxygine/src/core/oxygine.cpp

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