Improved NPOT texture detection

This commit is contained in:
Stephan Sundermann committed 2012-09-17 14:24:14 +02:00
1 parent 066b3bfcea
commit b4d0449b4a
1 file changed
+4 -4
+4 -4
View File
@@ -186,10 +186,10 @@ namespace Vocaluxe.Lib.Draw
flags = CreateFlags.SoftwareVertexProcessing;
//Check if Pow2 textures are needed
if ((caps.TextureCaps & TextureCaps.Pow2) != 0)
_NonPowerOf2TextureSupported = false;
else
_NonPowerOf2TextureSupported = true;
_NonPowerOf2TextureSupported = true;
_NonPowerOf2TextureSupported &= (caps.TextureCaps & TextureCaps.Pow2) != 0;
_NonPowerOf2TextureSupported &= (caps.TextureCaps & TextureCaps.NonPow2Conditional) != 0;
_NonPowerOf2TextureSupported &= (caps.TextureCaps & TextureCaps.SquareOnly) != 0;
try
{