X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fjpgfactory.cxx;h=29eecab7f51bb8d0343eeb0b021876e1336d49fe;hb=ff72b68731e512133fd1ab8c2684d60a277379d7;hp=49621fe5a22f8a2a9fd4a50531ec139611aa08b6;hpb=efac53b1212d3dd3456b7cada4262287c700ce34;p=simgear.git diff --git a/simgear/screen/jpgfactory.cxx b/simgear/screen/jpgfactory.cxx index 49621fe5..29eecab7 100644 --- a/simgear/screen/jpgfactory.cxx +++ b/simgear/screen/jpgfactory.cxx @@ -21,14 +21,16 @@ // $Id$ +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef HAVE_WINDOWS_H # include #endif -#include - #include "jpgfactory.hxx" - +#include #ifdef __cplusplus extern "C" { @@ -42,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 */ @@ -238,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);