From a675090b4a5e0b136a9c27f8c8d1889ce4474289 Mon Sep 17 00:00:00 2001 From: Gerhard Kitzler Date: Mon, 29 Oct 2012 17:58:35 +0000 Subject: [PATCH] using viewport variable --- ng/ngpkg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index 608ce829..2f770f5f 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -1943,7 +1943,10 @@ namespace netgen int h = Togl_Height (togl); glViewport(0, 0, w, h); - + netgen::VisualScene::viewport[0]=0; + netgen::VisualScene::viewport[1]=0; + netgen::VisualScene::viewport[2]=w; + netgen::VisualScene::viewport[3]=h; glMatrixMode(GL_PROJECTION); glLoadIdentity();