using viewport variable

This commit is contained in:
Gerhard Kitzler 2012-10-29 17:58:35 +00:00
parent 8e2759e25a
commit a675090b4a

View File

@ -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();