I have to copy an entire texture to a surface.
Why doesen't this code work?
SurfaceToTexture(LPDIRECT3DSURFACE9 surface, LPDIRECT3DTEXTURE9 texture)
{
IDirect3DSurface9* destination = NULL;
texture->GetSurfaceLevel(0,&destination);
DX::g_pd3dDevice->UpdateSurface(surface,NULL,destination,NULL);
}