X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Ftr.cxx;h=f1ff29df2df2b9af1c0f128353a989a9174efc5e;hb=33970663435dd1a12941b017739285341205acf4;hp=6c191a3d44b72d813712ba3b90221448c8a8e891;hpb=c7cbb22667c901e6107dd099e02e9506f9fbd360;p=simgear.git diff --git a/simgear/screen/tr.cxx b/simgear/screen/tr.cxx index 6c191a3d..f1ff29df 100644 --- a/simgear/screen/tr.cxx +++ b/simgear/screen/tr.cxx @@ -144,7 +144,7 @@ #include #endif -#include +#include #include "tr.h" @@ -541,7 +541,6 @@ int trEndTile(TRcontext *tr) return 1; } - /* * Replacement for glRastePos3f() which avoids the problem with invalid * raster pos. @@ -566,7 +565,8 @@ void trRasterPos3f(TRcontext *tr, GLfloat x, GLfloat y, GLfloat z) viewport[3] = tr->CurrentTileHeight; /* Project object coord to window coordinate */ - if (gluProject(x, y, z, modelview, proj, viewport, &winX, &winY, &winZ)){ + if (simgear::project(x, y, z, modelview, proj, viewport, + &winX, &winY, &winZ)){ /* set raster pos to window coord (0,0) */ glMatrixMode(GL_MODELVIEW);