Bugfix: don't render textures with dimension of 0
At least 'invertRGB()' does not like 'width' or 'height' being 0.
341b2f43e5
was triggered by this problem as well.
This commit is contained in:
parent
92deeba2a0
commit
78adeb2919
1 changed files with 4 additions and 1 deletions
|
@ -1349,7 +1349,10 @@ TextureRender::~TextureRender() {
|
|||
|
||||
|
||||
Pixmap TextureRender::render(const FbTk::Texture &texture) {
|
||||
if (texture.pixmap().drawable() != 0)
|
||||
|
||||
if (width == 0 || height == 0)
|
||||
return None;
|
||||
else if (texture.pixmap().drawable() != 0)
|
||||
return renderPixmap(texture);
|
||||
else if (texture.type() & FbTk::Texture::PARENTRELATIVE)
|
||||
return ParentRelative;
|
||||
|
|
Loading…
Reference in a new issue