Surface to texture

Started by
1 comment, last by ArgusMaker 12 years, 9 months ago
Hi :D
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);
}
Advertisement
Look into 'stretchrect'.
[color="#0000EE"]

[color="#0000EE"]Link
thank you it does work now :D

This topic is closed to new replies.

Advertisement