diff options
author | Karl Berry <karl@freefriends.org> | 2019-08-10 16:06:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-08-10 16:06:35 +0000 |
commit | bbb53f06c6f48d4c675d250829032e09f4065a86 (patch) | |
tree | 0583c905a5d67f3e1447456048b2e479311e4e83 /Build/source/utils/asymptote/tr.cc | |
parent | efd1dbbaa1332a9534c25024a0c295f423714851 (diff) |
asy 2.52 sources
git-svn-id: svn://tug.org/texlive/trunk@51856 c570f23f-e606-0410-a88d-b1316a301751
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); } |