Mercurial > hg > orthanc-stone
diff Framework/OpenGL/OpenGLIncludes.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 | 3ea70a62ca00 |
children | bc27c199eefe 2d8ab34c8c91 |
line wrap: on
line diff
--- a/Framework/OpenGL/OpenGLIncludes.h Wed Oct 09 15:58:39 2019 +0200 +++ b/Framework/OpenGL/OpenGLIncludes.h Wed Oct 09 17:17:56 2019 +0200 @@ -58,7 +58,6 @@ # define ORTHANC_OPENGL_CHECK(name) # define ORTHANC_OPENGL_TRACE_CURRENT_CONTEXT(msg) -# define ORTHANC_CHECK_CURRENT_CONTEXT(context) # else @@ -80,17 +79,6 @@ LOG(TRACE) << msg << " | Current OpenGL context is " << std::hex << ctx; \ } else (void)0 -# define ORTHANC_CHECK_CURRENT_CONTEXT(context) \ -if(true) \ -{ \ - SDL_GLContext actualCtx = SDL_GL_GetCurrentContext(); \ - void* expectedCtx = context.DebugGetInternalContext(); \ - if(expectedCtx != actualCtx) \ - { \ - LOG(ERROR) << "Expected context was " << std::hex << expectedCtx << " while actual context is " << std::hex << actualCtx; \ - } \ -} else (void)0 - # endif #endif