]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Texture.cc
dispatch class not a singleton, engine is static
[chaz/yoink] / src / Moof / Texture.cc
index 22d3f15e92cab597259673d86c08cd2f4692d292..6769d8887644a1924d2fdc67974b1afa4df4083d 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "Dispatch.hh"
 #include "Engine.hh"
-#include "Exception.hh"
+#include "Error.hh"
 #include "Image.hh"
 #include "Library.hh"
 #include "Log.hh"
@@ -121,8 +121,7 @@ public:
                mWrapT(GL_CLAMP),
                mObject(0)
        {
-               // make sure the engine is initialized
-               Engine& engine = Engine::getInstance();
+               // make sure we have a video
                VideoP video = engine.getVideo();
                ASSERT(video && "cannot load textures without a current video context");
 
@@ -220,7 +219,7 @@ public:
                if (!mImage.isValid())
                {
                        logWarning << "texture not found: " << getName() << std::endl;
-                       throw Exception(ErrorCode::RESOURCE_NOT_FOUND, getName());
+                       throw Error(Error::RESOURCE_NOT_FOUND, getName());
                }
 
                mImage.flip();
This page took 0.018429 seconds and 4 git commands to generate.