Fix crash when pressing webcam-button in profiles-screen.
This commit is contained in:
1 parent
2ca07ee777
commit
12aec98f2c
1 file changed
+2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user