1
0
Fork 0

Canvas: Don't crash if texture not available

This commit is contained in:
Thomas Geymayer 2012-08-12 20:21:14 +02:00
parent e6cb846ad3
commit 624522b426

View file

@ -323,6 +323,9 @@ namespace canvas
? _canvas.lock()->getTexture()
: _texture.get();
if( !texture )
return Rect<int>();
return Rect<int>
(
0,0,