mono/MonoGame — pull request #1453 by DigitalRune (2013-02-25 13:22:03+00:00)
Title: Fix: Mipmap levels of DXT textures were not loaded correctly in DirectX

This patch fixes following bug:
In DirectX, mipmap levels of DXTCompressed textures where the width/height is not a multiple of 4 where not loaded correctly. The width/height of each level must be a multiple of 4 because this is the DXT block size. For example, the last mipmap level which is usually 1x1 texels must be treated as 4x4 texels in UpdateSubresource().

This patch fixes the following issue: https://github.com/mono/MonoGame/issues/1415

The OpenGL implementation is unchanged and works. (GL.CompressedTexImage2D() works if we treat the last level as 1x1. It does not work if we treat the last level as 4x4.)