quote:Original post by neneboricua19
It may be because of the flags used when the textures were created. Are you running the Debug Runtime? Is there any output to the debug spew? Have you checked the HRESULT values? Many times, the debug spew will tell you if an error or even if something strange is happening.
neneboricua
the debug messages include nothing special, and the return value is D3D_OK.
i noticed that in
StretchRect(m_renderTarget, NULL, m_renderResultSaved, NULL, D3DTEXF_NONE );
from GetDesc(), i can see that the two surfaces are of the same size, 592*466,which is equal to the
size of the client window.
the m_renderTarget is got by IDirect3DDevice9::GetRenderTarget(), not by CreateTexture.
even if i specify the 592*466 instead of NULL, i can only get
the left-upper part of renderTarget.
and at this place StretchRect works well stretching other textures.