From bd93d65ea2f85b3d0778282fe37d0f287fc4990f Mon Sep 17 00:00:00 2001 From: Maxime Graulich <maxime.graulich@gmail.com> Date: Wed, 26 Mar 2014 14:53:57 +0000 Subject: [PATCH] mobile: reset openGL view when loading a new model --- contrib/mobile/drawContext.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/mobile/drawContext.cpp b/contrib/mobile/drawContext.cpp index 845b645c95..873b6593c1 100644 --- a/contrib/mobile/drawContext.cpp +++ b/contrib/mobile/drawContext.cpp @@ -82,8 +82,11 @@ void drawContext::load(std::string filename) // open the file with Gmsh GmshOpenProject(filename); + + // reset openGL view + this->eventHandler(10); - // run getdp witout parameter + // run getdp without parameter onelab_cb("check"); // to allow the first run -- GitLab