aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/TextureRender.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc
index 7b808af..c66dfa7 100644
--- a/src/FbTk/TextureRender.cc
+++ b/src/FbTk/TextureRender.cc
@@ -1349,7 +1349,10 @@ TextureRender::~TextureRender() {
1349 1349
1350 1350
1351Pixmap TextureRender::render(const FbTk::Texture &texture) { 1351Pixmap TextureRender::render(const FbTk::Texture &texture) {
1352 if (texture.pixmap().drawable() != 0) 1352
1353 if (width == 0 || height == 0)
1354 return None;
1355 else if (texture.pixmap().drawable() != 0)
1353 return renderPixmap(texture); 1356 return renderPixmap(texture);
1354 else if (texture.type() & FbTk::Texture::PARENTRELATIVE) 1357 else if (texture.type() & FbTk::Texture::PARENTRELATIVE)
1355 return ParentRelative; 1358 return ParentRelative;