Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualTispe

Posted 11 January 2013 - 09:00 AM

LPDIRECT3DSURFACE9 dstsurf = NULL;
LPDIRECT3DSURFACE9 srcsurf = pYourSurface; //This can be your backbuffer
 
if (SUCCEEDED (pYourTexture->GetSurfaceLevel (0, &dstsurf)))
{
D3DXLoadSurfaceFromSurface (
dstsurf,
NULL,
NULL,
srcsurf,
NULL,
NULL,
D3DX_DEFAULT,
0
);

}
 
if (dstsurf) dstsurf->Release ();
if (srcsurf) srcsurf->Release ();

#4Tispe

Posted 11 January 2013 - 08:58 AM

LPDIRECT3DSURFACE9 dstsurf = NULL;
LPDIRECT3DSURFACE9 srcsurf = pYourSurface;
 
if (SUCCEEDED (pYourTexture->GetSurfaceLevel (0, &dstsurf)))
{
ret = D3DXLoadSurfaceFromSurface (
dstsurf,
NULL,
NULL,
srcsurf,
NULL,
NULL,
D3DX_DEFAULT,
0
);

}
 
if (dstsurf) dstsurf->Release ();
if (srcsurf) srcsurf->Release ();

#3Tispe

Posted 11 January 2013 - 08:57 AM

LPDIRECT3DSURFACE9 dstsurf = NULL;
LPDIRECT3DSURFACE9 srcsurf = NULL;
 
if (SUCCEEDED (pYourTexture->GetSurfaceLevel (0, &dstsurf)))
{
ret = D3DXLoadSurfaceFromSurface (
dstsurf,
NULL,
NULL,
srcsurf,
NULL,
NULL,
D3DX_DEFAULT,
0
);

}
 
if (dstsurf) dstsurf->Release ();
if (srcsurf) srcsurf->Release ();

#2Tispe

Posted 11 January 2013 - 08:56 AM

LPDIRECT3DSURFACE9 dstsurf = NULL;
LPDIRECT3DSURFACE9 srcsurf = NULL;
 
if (SUCCEEDED (dst->pYourTexture->GetSurfaceLevel (0, &dstsurf)))
{
ret = D3DXLoadSurfaceFromSurface (
dstsurf,
NULL,
NULL,
srcsurf,
NULL,
NULL,
D3DX_DEFAULT,
0
);

}
 
if (dstsurf) dstsurf->Release ();
if (srcsurf) srcsurf->Release ();

#1Tispe

Posted 11 January 2013 - 08:53 AM

LPDIRECT3DSURFACE9 dstsurf = NULL;
LPDIRECT3DSURFACE9 srcsurf = NULL;
 
if (SUCCEEDED (dst->pYourTexture->GetSurfaceLevel (0, &dstsurf)))
{
if (SUCCEEDED (src->GetSurfaceLevel (0, &srcsurf)))
{
ret = D3DXLoadSurfaceFromSurface (
dstsurf,
NULL,
NULL,
srcsurf,
NULL,
NULL,
D3DX_DEFAULT,
0
);
}
}
 
if (dstsurf) dstsurf->Release ();
if (srcsurf) srcsurf->Release ();

PARTNERS