]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Texture.cc
no more useless singleton class
[chaz/yoink] / src / Moof / Texture.cc
index 8aa66c4f1ec7c64c95b3d35016f4ef1e9068593d..46dbb480afc3fc179f06b2db8192ac5b421c0735 100644 (file)
@@ -38,6 +38,7 @@
 #include "OpenGL.hh"
 #include "Texture.hh"
 
+#include <iostream>
 
 namespace Mf {
 
@@ -80,6 +81,7 @@ class Texture::Impl : public Mippleton<Impl>
 
        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);
        }
 
 
This page took 0.016693 seconds and 4 git commands to generate.