Improved NPOT texture detection
This commit is contained in:
1 parent
066b3bfcea
commit
b4d0449b4a
1 file changed
+4
-4
@@ -186,10 +186,10 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
flags = CreateFlags.SoftwareVertexProcessing;
|
flags = CreateFlags.SoftwareVertexProcessing;
|
||||||
|
|
||||||
//Check if Pow2 textures are needed
|
//Check if Pow2 textures are needed
|
||||||
if ((caps.TextureCaps & TextureCaps.Pow2) != 0)
|
_NonPowerOf2TextureSupported = true;
|
||||||
_NonPowerOf2TextureSupported = false;
|
_NonPowerOf2TextureSupported &= (caps.TextureCaps & TextureCaps.Pow2) != 0;
|
||||||
else
|
_NonPowerOf2TextureSupported &= (caps.TextureCaps & TextureCaps.NonPow2Conditional) != 0;
|
||||||
_NonPowerOf2TextureSupported = true;
|
_NonPowerOf2TextureSupported &= (caps.TextureCaps & TextureCaps.SquareOnly) != 0;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user