From 1b9ddd194e2692be0b0add145230efafe49baff9 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sun, 7 Dec 2014 22:05:18 +0100 Subject: [PATCH] Fix assertion failure with enqueue texture --- Vocaluxe/Lib/Draw/CTextureProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Lib/Draw/CTextureProvider.cs b/Vocaluxe/Lib/Draw/CTextureProvider.cs index e5d61f65..52fb5226 100644 --- a/Vocaluxe/Lib/Draw/CTextureProvider.cs +++ b/Vocaluxe/Lib/Draw/CTextureProvider.cs @@ -357,7 +357,7 @@ namespace Vocaluxe.Lib.Draw /// protected CTextureRef _GetTextureReference(Size origSize, TTextureType texture) { - Debug.Assert(origSize.Width > 0 && origSize.Height > 0); + Debug.Assert(origSize.Width > 0 && origSize.Height > 0 || origSize.Width == -1 && origSize.Height == -1); Debug.Assert(texture != null); int id; lock (_MutexID)