Fixed mipmaps not rebuilding when using render targets.