]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/sky/bbcache.cxx
- remove the SG_GLxxxx_H #defines, since OSG provides its own versions
[simgear.git] / simgear / scene / sky / bbcache.cxx
index 26980d1e84c2d0e6bf9f34437012bf615e556b4a..66b272750fc990337d0ac9cda689b1c0dec6bffd 100644 (file)
 #include <simgear/debug/logstream.hxx>
 
 #include <plib/sg.h>
-#include <plib/ssg.h>
 #include <simgear/screen/extensions.hxx>
 #include <simgear/screen/RenderTexture.h>
-#include SG_GLU_H
+#include <osg/GLU>
 
 #include "bbcache.hxx"
 
@@ -102,8 +101,7 @@ SGBbCache::SGBbCache(void) :
 }
 
 SGBbCache::~SGBbCache(void) {
-       if(rt)
-               delete rt;
+       delete rt;
        freeTextureMemory();
 }