diff Applications/Sdl/SdlOpenGLContext.h @ 1045:6a9300ecfa13

tests for context loss are now restricted to WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Oct 2019 17:17:56 +0200
parents a7351ad54960
children
line wrap: on
line diff
--- a/Applications/Sdl/SdlOpenGLContext.h	Wed Oct 09 15:58:39 2019 +0200
+++ b/Applications/Sdl/SdlOpenGLContext.h	Wed Oct 09 17:17:56 2019 +0200
@@ -35,7 +35,6 @@
   private:
     SdlWindow      window_;
     SDL_GLContext  context_;
-    bool           contextLost_;
 
   public:
     SdlOpenGLContext(const char* title,
@@ -50,10 +49,11 @@
       return window_;
     }
 
-    virtual bool IsContextLost() ORTHANC_OVERRIDE;
-
-    virtual void SetLostContext() ORTHANC_OVERRIDE;
-    virtual void RestoreLostContext() ORTHANC_OVERRIDE;
+    virtual bool IsContextLost() ORTHANC_OVERRIDE
+    {
+      // On desktop applications, an OpenGL context should never be lost
+      return false;
+    }
 
     virtual void MakeCurrent() ORTHANC_OVERRIDE;
 
@@ -62,11 +62,6 @@
     virtual unsigned int GetCanvasWidth() const ORTHANC_OVERRIDE;
 
     virtual unsigned int GetCanvasHeight() const ORTHANC_OVERRIDE;
-
-    virtual void* DebugGetInternalContext() const ORTHANC_OVERRIDE
-    {
-      return context_;
-    }
   };
 }