X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fjpgfactory.cxx;h=29eecab7f51bb8d0343eeb0b021876e1336d49fe;hb=ff72b68731e512133fd1ab8c2684d60a277379d7;hp=aef48ae21861c4cfb8390d33a8df7b9e86a23f21;hpb=62aa32a4178659d224340997dd065cc3b49bbf11;p=simgear.git diff --git a/simgear/screen/jpgfactory.cxx b/simgear/screen/jpgfactory.cxx index aef48ae2..29eecab7 100644 --- a/simgear/screen/jpgfactory.cxx +++ b/simgear/screen/jpgfactory.cxx @@ -16,22 +16,21 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // -// $Id: +// $Id$ +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef HAVE_WINDOWS_H # include #endif -#include -#include - -#include - #include "jpgfactory.hxx" - +#include #ifdef __cplusplus extern "C" { @@ -45,6 +44,7 @@ static boolean empty_output_buffer (j_compress_ptr cinfo); } #endif +// OSGFIME: offscreenrendering on osg - completely new context ... typedef struct { struct jpeg_destination_mgr pub; /* public fields */ @@ -241,12 +241,6 @@ int trJpgFactory::render() glMatrixMode(GL_MODELVIEW); glLoadIdentity(); - sgFrustum *frustum = ssgGetFrustum(); - trFrustum(tr, - frustum->getLeft(), frustum->getRight(), - frustum->getBot(), frustum->getTop(), - frustum->getNear(), frustum->getFar()); - /* just to be safe... */ glPixelStorei(GL_PACK_ALIGNMENT, 1);