diff options
Diffstat (limited to 'src/Texture.cc')
| -rw-r--r-- | src/Texture.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Texture.cc b/src/Texture.cc index 60923316..75283a91 100644 --- a/src/Texture.cc +++ b/src/Texture.cc @@ -184,6 +184,7 @@ BTexture& BTexture::operator=(const BTexture &tt) { Pixmap BTexture::render(const unsigned int width, const unsigned int height, const Pixmap old) { assert(display() != 0); + assert(texture() != BTexture::NoTexture); if (texture() == (BTexture::Flat | BTexture::Solid)) return None; |
