diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llrender/llrender.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/llrender/llrender.cpp b/linden/indra/llrender/llrender.cpp index 80fed06..a15f44a 100644 --- a/linden/indra/llrender/llrender.cpp +++ b/linden/indra/llrender/llrender.cpp | |||
@@ -190,6 +190,10 @@ bool LLTexUnit::bind(const LLImageGL* texture) | |||
190 | { | 190 | { |
191 | return texture->bindDefaultImage(mIndex); | 191 | return texture->bindDefaultImage(mIndex); |
192 | } | 192 | } |
193 | if (!texture->getTexName()) //if texture does not exist | ||
194 | { | ||
195 | return texture->bindDefaultImage(mIndex); | ||
196 | } | ||
193 | 197 | ||
194 | // Disabled caching of binding state. | 198 | // Disabled caching of binding state. |
195 | if (texture != NULL) | 199 | if (texture != NULL) |