X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FTexture.cc;h=46dbb480afc3fc179f06b2db8192ac5b421c0735;hb=a5f0d391406a68275b41448fc3f49e8d8396c497;hp=e8f5d86d1f2e65fd85d413c5b93b26bfcedc6ac3;hpb=bfa6212d09d8735d8fd5e2638188e4a99f21ada4;p=chaz%2Fyoink diff --git a/src/Moof/Texture.cc b/src/Moof/Texture.cc index e8f5d86..46dbb48 100644 --- a/src/Moof/Texture.cc +++ b/src/Moof/Texture.cc @@ -38,6 +38,7 @@ #include "OpenGL.hh" #include "Texture.hh" +#include namespace Mf { @@ -78,8 +79,9 @@ class Texture::Impl : public Mippleton * to cache it if the client has plenty of RAM. */ - void contextRecreated(const Notification& note) + void contextRecreated(const Notification* note) { + std::cout << "context recrated!" << std::endl; object_ = globalObject_ = 0; uploadToGL(); } @@ -144,7 +146,7 @@ public: loadFromFile(); // we want to know when the GL context is recreated - Dispatcher::instance().addHandler("video.context_recreated", + Dispatcher::getInstance().addHandler("video.context_recreated", boost::bind(&Impl::contextRecreated, this, _1), this); } @@ -157,7 +159,7 @@ public: unloadFromGL(); - Dispatcher::instance().removeHandler(this); + Dispatcher::getInstance().removeHandler(this); }