Fix crash when pressing webcam-button in profiles-screen.

This commit is contained in:
Florian Küpper committed 2013-05-23 11:00:35 +02:00
1 parent 2ca07ee777
commit 12aec98f2c
1 file changed
+2
+2
View File
@@ -206,6 +206,8 @@ namespace VocaluxeLib.Menu
public void Draw(float scale, float z, EAspect aspect, bool forceDraw = false)
{
CTexture texture = Texture;
if (texture == null)
texture = new CTexture((int)Rect.W, (int)Rect.H);
SRectF bounds = new SRectF(
Rect.X - Rect.W * (scale - 1f),