#include "OpenGL.hh"
#include "Texture.hh"
+#include <iostream>
namespace Mf {
* 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();
}
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);
}
unloadFromGL();
- Dispatcher::instance().removeHandler(this);
+ Dispatcher::getInstance().removeHandler(this);
}