]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/jpgfactory.cxx
Remove unneeded inclusions of windows.h, GL.h and GLU.H
[simgear.git] / simgear / screen / jpgfactory.cxx
index 49621fe5a22f8a2a9fd4a50531ec139611aa08b6..29eecab7f51bb8d0343eeb0b021876e1336d49fe 100644 (file)
 // $Id$
 
 
+#ifdef HAVE_CONFIG_H
+#  include <simgear_config.h>
+#endif
+
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
 #endif
 
-#include <plib/ssg.h>
-
 #include "jpgfactory.hxx"
-   
+#include <string.h>   
 
 #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);