diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-08 11:24:07 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-08 11:24:07 +0200 |
commit | b0971f4459fd37813dd4779f2ddaf9b38cf5f776 (patch) | |
tree | 3a839ab26708e7891a32f5125bb2fdde47cc2ae3 /src/irrlichtwrapper.cpp | |
parent | 15f27a19378345c22b07e37ab324581d55ad9c5b (diff) | |
download | minetest-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.tar.gz minetest-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.tar.bz2 minetest-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.zip |
local game connects to 127.0.0.1 instead of localhost (windows returns an ipv6 address sometimes which is not supported)
Diffstat (limited to 'src/irrlichtwrapper.cpp')
-rw-r--r-- | src/irrlichtwrapper.cpp | 10 |
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) |