diff --git a/panda/metalibs/pandagl/Sources.pp b/panda/metalibs/pandagl/Sources.pp index 2939392bf6..059b5bc6bf 100644 --- a/panda/metalibs/pandagl/Sources.pp +++ b/panda/metalibs/pandagl/Sources.pp @@ -13,7 +13,7 @@ // directly into Panda. #define COMPONENT_LIBS \ glgsg glxdisplay \ - wgldisplay + wgldisplay osxdisplay #endif #define LOCAL_LIBS gsgbase display express diff --git a/panda/metalibs/pandagl/pandagl.cxx b/panda/metalibs/pandagl/pandagl.cxx index 12df9bf159..fd9af0bcd5 100644 --- a/panda/metalibs/pandagl/pandagl.cxx +++ b/panda/metalibs/pandagl/pandagl.cxx @@ -13,6 +13,11 @@ #endif // LINK_IN_GL + +#ifdef IS_OSX +#include "config_osxdisplay.h" +#endif + // By including checkPandaVersion.h, we guarantee that runtime // attempts to load libpandagl.so/.dll will fail if they inadvertently // link with the wrong version of libdtool.so/.dll. @@ -35,4 +40,10 @@ init_libpandagl() { init_libwgldisplay(); #endif // HAVE_GL #endif // LINK_IN_GL + + +#ifdef IS_OSX + init_libosxdisplay(); +#endif + }