Mercurial > hg > orthanc-stone
comparison Framework/Viewport/WebGLViewport.cpp @ 1482:5c96bf3f1d32
IOpenGL::RefreshCanvasSize()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 20 Jun 2020 11:08:28 +0200 |
parents | 1b8e37770d78 |
children | 6abd819aa534 |
comparison
equal
deleted
inserted
replaced
1481:970ee51fe01f | 1482:5c96bf3f1d32 |
---|---|
61 | 61 |
62 void WebGLViewport::UpdateSize(ICompositor& compositor) | 62 void WebGLViewport::UpdateSize(ICompositor& compositor) |
63 { | 63 { |
64 try | 64 try |
65 { | 65 { |
66 context_.UpdateSize(); | 66 context_.RefreshCanvasSize(); |
67 } | 67 } |
68 catch (const StoneException& e) | 68 catch (const StoneException& e) |
69 { | 69 { |
70 // Ignore problems about the loss of the WebGL context (edge case) | 70 // Ignore problems about the loss of the WebGL context (edge case) |
71 if (e.GetErrorCode() == ErrorCode_WebGLContextLost) | 71 if (e.GetErrorCode() == ErrorCode_WebGLContextLost) |