diff --git a/BBGE/RenderObject.cpp b/BBGE/RenderObject.cpp index 6e79b4d..39f249b 100644 --- a/BBGE/RenderObject.cpp +++ b/BBGE/RenderObject.cpp @@ -1363,7 +1363,10 @@ bool RenderObject::setTexture(const std::string &n) stringToLowerUserData(name); if (name.empty()) + { + setTexturePointer(NULL); return false; + } if(texture && name == texture->name) return true; // no texture change