mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
using viewport variable
This commit is contained in:
parent
8e2759e25a
commit
a675090b4a
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user