Prefer NPOT texture over RECT texture

--HG--
branch : multipass-stereo
This commit is contained in:
kaetemi 2013-07-02 18:43:15 +02:00
parent 43f8adff79
commit d13da7a398

View file

@ -701,7 +701,7 @@ bool CDriverGL::supportNonPowerOfTwoTextures() const
// ***************************************************************************
bool CDriverGL::isTextureRectangle(ITexture * tex) const
{
return (supportTextureRectangle() && tex->isBloomTexture() && tex->mipMapOff()
return (!supportNonPowerOfTwoTextures() && supportTextureRectangle() && tex->isBloomTexture() && tex->mipMapOff()
&& (!isPowerOf2(tex->getWidth()) || !isPowerOf2(tex->getHeight())));
}