Józef Kucia : d3dx9: Use actual level count for computing the number of loaded mipmaps.