Skip to content

Commit

Permalink
Move some OSG static library setup code
Browse files Browse the repository at this point in the history
  • Loading branch information
slothlife committed Jul 17, 2015
1 parent df99d5a commit 1b3cc95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions components/resource/texturemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

#include <components/vfs/manager.hpp>

#ifdef OSG_LIBRARY_STATIC
// This list of plugins should match with the list in the top-level CMakelists.txt.
USE_OSGPLUGIN(png)
USE_OSGPLUGIN(tga)
USE_OSGPLUGIN(dds)
USE_OSGPLUGIN(jpeg)
#endif

namespace
{

Expand Down
6 changes: 0 additions & 6 deletions components/sdlutil/sdlcursormanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
#include "imagetosurface.hpp"

#ifdef OSG_LIBRARY_STATIC
// This list of plugins should match with the list in the top-level CMakelists.txt.
USE_OSGPLUGIN(png)
USE_OSGPLUGIN(tga)
USE_OSGPLUGIN(dds)
USE_OSGPLUGIN(jpeg)

// Sets the default windowing system interface according to the OS.
// Necessary for OpenSceneGraph to do some things, like decompression.
USE_GRAPHICSWINDOW()
Expand Down

0 comments on commit 1b3cc95

Please sign in to comment.