X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTexture.cc;h=5341af33d32085632d605029705fa21b4d1c3b7e;hp=6769d8887644a1924d2fdc67974b1afa4df4083d;hb=987971a961454d97082c6448fdc0bbeb540281bb;hpb=be9ebc1104574e5e81e19c5caba0c23b54df826d diff --git a/src/Moof/Texture.cc b/src/Moof/Texture.cc index 6769d88..5341af3 100644 --- a/src/Moof/Texture.cc +++ b/src/Moof/Texture.cc @@ -32,13 +32,14 @@ #include #include "Dispatch.hh" -#include "Engine.hh" +#include "Core.hh" #include "Error.hh" #include "Image.hh" #include "Library.hh" #include "Log.hh" #include "OpenGL.hh" #include "Texture.hh" +#include "Video.hh" namespace Mf { @@ -121,12 +122,11 @@ public: mWrapT(GL_CLAMP), mObject(0) { - // make sure we have a video - VideoP video = engine.getVideo(); - ASSERT(video && "cannot load textures without a current video context"); + // make sure we have a video context + //ASSERT(video && "cannot load textures without a current video context"); // we want to know when the GL context is recreated - mDispatchHandler = engine.addHandler("video.newcontext", + mDispatchHandler = core.addHandler("video.newcontext", boost::bind(&Impl::contextRecreated, this)); loadFromFile();