Bugfix for OpenGL (missing real bmp size)

This commit is contained in:
Flamefire committed 2013-05-04 14:20:44 +02:00
1 parent 6083d58499
commit 017b96be5f
1 file changed
+5 -2
+5 -2
View File
@@ -706,8 +706,11 @@ namespace Vocaluxe.Lib.Draw
int w = Math.Min(bmp.Width, maxSize);
int h = Math.Min(bmp.Height, maxSize);
texture.W2 = MathHelper.NextPowerOfTwo(w);
texture.H2 = MathHelper.NextPowerOfTwo(h);
w = MathHelper.NextPowerOfTwo(w);
h = MathHelper.NextPowerOfTwo(h);
texture.W2 = w;
texture.H2 = h;
Bitmap bmp2 = null;
try