diff --git a/pandatool/src/egg-palettize/Sources.pp b/pandatool/src/egg-palettize/Sources.pp index b2492cbb4b..0979bf68d4 100644 --- a/pandatool/src/egg-palettize/Sources.pp +++ b/pandatool/src/egg-palettize/Sources.pp @@ -17,8 +17,15 @@ #begin lib_target #define TARGET txafile + #define BUILDING_DLL BUILDING_MISC #define LOCAL_LIBS \ palettizer + #define OTHER_LIBS \ + egg:c pgraph:c downloader:c gobj:c lerp:c linmath:c putil:c \ + express:c pnmimage:c pnmimagetypes:c \ + event:c mathutil:c \ + pandaegg:m panda:m pandaexpress:m \ + interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub #define SOURCES \ txaFileFilter.h txaFileFilter.I txaFileFilter.cxx diff --git a/pandatool/src/egg-palettize/txaFileFilter.cxx b/pandatool/src/egg-palettize/txaFileFilter.cxx index 6d0f05120f..1cc89334ad 100644 --- a/pandatool/src/egg-palettize/txaFileFilter.cxx +++ b/pandatool/src/egg-palettize/txaFileFilter.cxx @@ -97,7 +97,7 @@ post_load(Texture *tex) { // Create an EggTexture to pass back the requested alpha mode to // the egg loader, if the texture is now being loaded from an egg // file. - PT(EggTexture) egg_tex = new EggTexture(tex->get_name(), tex->get_fullpath()); + PT_EggTexture egg_tex = new EggTexture(tex->get_name(), tex->get_fullpath()); const TextureProperties &props = tex_image.get_properties(); egg_tex->set_alpha_mode(tex_image.get_alpha_mode()); diff --git a/pandatool/src/egg-palettize/txaFileFilter.h b/pandatool/src/egg-palettize/txaFileFilter.h index 6163af1616..014befc3c0 100644 --- a/pandatool/src/egg-palettize/txaFileFilter.h +++ b/pandatool/src/egg-palettize/txaFileFilter.h @@ -21,6 +21,7 @@ #include "pandatoolbase.h" #include "texturePoolFilter.h" +#include "pt_EggTexture.h" class TxaFile; @@ -46,7 +47,7 @@ class TxaFile; // that filters for which this might be a problem should // call tex->set_keep_ram_image(true). //////////////////////////////////////////////////////////////////// -class EXPCL_PANDA TxaFileFilter : public TexturePoolFilter { +class EXPCL_MISC TxaFileFilter : public TexturePoolFilter { public: virtual PT(Texture) post_load(Texture *tex);