X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Ftr.cxx;h=e6d8bd7e3f8cf530882706366579a45570547ae4;hb=201cb61f842ef50a19438e3872ba22e588fa1afc;hp=f1ff29df2df2b9af1c0f128353a989a9174efc5e;hpb=bfe953c18d47d3e8fcb534d7c5d52497279a22b4;p=simgear.git diff --git a/simgear/screen/tr.cxx b/simgear/screen/tr.cxx index f1ff29df..e6d8bd7e 100644 --- a/simgear/screen/tr.cxx +++ b/simgear/screen/tr.cxx @@ -144,7 +144,7 @@ #include #endif -#include +#include #include "tr.h" @@ -408,7 +408,7 @@ void trBeginTile(TRcontext *tr) { GLint matrixMode; GLint tileWidth, tileHeight, border; - GLdouble left, right, bottom, top; +// GLdouble left, right, bottom, top; if (!tr) return; @@ -459,7 +459,9 @@ void trBeginTile(TRcontext *tr) glMatrixMode(GL_PROJECTION); glLoadIdentity(); + // OSGFIXME /* compute projection parameters */ + /* left = tr->Left + (tr->Right - tr->Left) * (tr->CurrentColumn * tr->TileWidthNB - border) / tr->ImageWidth; right = left + (tr->Right - tr->Left) * tileWidth / tr->ImageWidth; @@ -467,8 +469,8 @@ void trBeginTile(TRcontext *tr) * (tr->CurrentRow * tr->TileHeightNB - border) / tr->ImageHeight; top = bottom + (tr->Top - tr->Bottom) * tileHeight / tr->ImageHeight; - // OSGFIXME -// ssgSetFrustum ( left, right, bottom, top, tr->Near, tr->Far ); + ssgSetFrustum ( left, right, bottom, top, tr->Near, tr->Far ); + */ /* restore user's matrix mode */ glMatrixMode( (GLenum)matrixMode );