Generate mipmaps before using a render target as a texture