X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FTexture.cc;h=75283a918c7c9113fa6f814274bfd2609fec0e86;hb=9af642d29918e8b36d7f1fd17e4c771662d4fe97;hp=60923316701161459367818d0cc72d3a8fe07ce4;hpb=23aea9b42f24195d915ca3f0c4fa9dca778ba1cd;p=chaz%2Fopenbox 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;