From 96206dd82a9de0f19b23be883396e51bd5f28907 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 9 May 2016 08:15:41 +0200 Subject: [PATCH] Fix yet another oopsie RenderObject::setTexture() Didn't apply empty ("") texture when another texture was already set. --- BBGE/RenderObject.cpp | 3 +++ 1 file changed, 3 insertions(+) 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