diff options
Diffstat (limited to 'Build/source/utils/asymptote/tr.cc')
-rw-r--r-- | Build/source/utils/asymptote/tr.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Build/source/utils/asymptote/tr.cc b/Build/source/utils/asymptote/tr.cc index 4408f4f219a..c62301cc432 100644 --- a/Build/source/utils/asymptote/tr.cc +++ b/Build/source/utils/asymptote/tr.cc @@ -307,7 +307,6 @@ void trPerspective(TRcontext *tr, void trBeginTile(TRcontext *tr) { - GLint matrixMode; GLint tileWidth, tileHeight, border; GLdouble left, right, bottom, top; @@ -355,11 +354,6 @@ void trBeginTile(TRcontext *tr) glViewport(0, 0, tileWidth, tileHeight); /* tile size including border */ - /* save current matrix mode */ - glGetIntegerv(GL_MATRIX_MODE, &matrixMode); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - /* compute projection parameters */ left = tr->Left + (tr->Right - tr->Left) * (tr->CurrentColumn * tr->TileWidthNB - border) / tr->ImageWidth; @@ -372,9 +366,6 @@ void trBeginTile(TRcontext *tr) frustum(left, right, bottom, top, tr->Near, tr->Far); else ortho(left, right, bottom, top, tr->Near, tr->Far); - - /* restore user's matrix mode */ - glMatrixMode(matrixMode); } |