#include "Dispatch.hh"
#include "Engine.hh"
-#include "Exception.hh"
+#include "Error.hh"
#include "Image.hh"
#include "Library.hh"
#include "Log.hh"
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");
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();