summaryrefslogtreecommitdiff
path: root/src/irrlichtwrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/irrlichtwrapper.cpp')
-rw-r--r--src/irrlichtwrapper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/irrlichtwrapper.cpp b/src/irrlichtwrapper.cpp
index a1d37f4bd..4ad647194 100644
--- a/src/irrlichtwrapper.cpp
+++ b/src/irrlichtwrapper.cpp
@@ -169,6 +169,16 @@ video::ITexture* IrrlichtWrapper::getTextureDirect(const TextureSpec &spec)
std::string path = porting::getDataPath(name.c_str());
dstream<<"getTextureDirect(): Loading path \""<<path
<<"\""<<std::endl;
+
+ // DEBUG
+ /*{
+ dstream<<"DEBUG CODE: Loading base image "
+ "directly to texture"<<std::endl;
+ t = driver->getTexture(path.c_str());
+ driver->renameTexture(t, texture_name.c_str());
+ return t;
+ }*/
+
video::IImage *image = driver->createImageFromFile(path.c_str());
if(image == NULL)