Mercurial > hg > orthanc-stone
diff Framework/OpenGL/WebAssemblyOpenGLContext.cpp @ 1050:d393ad9cf68c
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Oct 2019 14:31:56 +0200 |
parents | d6b83ee3a950 |
children | 0cc62db7e61b |
line wrap: on
line diff
--- a/Framework/OpenGL/WebAssemblyOpenGLContext.cpp Thu Oct 10 14:29:02 2019 +0200 +++ b/Framework/OpenGL/WebAssemblyOpenGLContext.cpp Thu Oct 10 14:31:56 2019 +0200 @@ -123,14 +123,14 @@ if (IsContextLost()) { LOG(ERROR) << "MakeCurrent() called on lost context " << context_; - throw OpenGLContextLostException(reinterpret_cast<void*>(context_)); + throw StoneException(ErrorCode_WebGLContextLost); } if (emscripten_is_webgl_context_lost(context_)) { LOG(ERROR) << "OpenGL context has been lost for canvas: " << canvas_; SetLostContext(); - throw OpenGLContextLostException(reinterpret_cast<void*>(context_)); + throw StoneException(ErrorCode_WebGLContextLost); } if (emscripten_webgl_make_context_current(context_) != EMSCRIPTEN_RESULT_SUCCESS)