]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/jpgfactory.cxx
Use mkdtemp where available, avoiding linker warnings about dangerous tempnam
[simgear.git] / simgear / screen / jpgfactory.cxx
index a5160cfc17fd1ccf09479e1241ff10c3023b32f6..29eecab7f51bb8d0343eeb0b021876e1336d49fe 100644 (file)
 // $Id$
 
 
+#ifdef HAVE_CONFIG_H
+#  include <simgear_config.h>
+#endif
+
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
 #endif
 
 #include "jpgfactory.hxx"
-   
+#include <string.h>   
 
 #ifdef __cplusplus
 extern "C" {
@@ -237,13 +241,6 @@ int trJpgFactory::render()
     glMatrixMode(GL_MODELVIEW);
     glLoadIdentity();
 
-    // OSGFIXME
-//     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);