   Clear failed
  I was debugging my Direct3D9 project with VC++ and I found the following error:"current zbuffer''s pixel format doesnt support stencil bits. Clear failed."Can someone extend to me that "error explanation", and say what exacly is causing it? Tips to fix it will be very usefull for me!Thanks 
  Don''t set D3DCLEAR_STENCIL if your depth buffer''s surface format doesn''t contain stencil information.;  You are right, it will fail in this case as I read at DX documentation, but WHEN can we say that depth buffer have stencil values? As I know, if D3DRS_STENCILENABLE is set to TRUE, and something is rendered (eg: shadow volumes) our depth buffer haves values... but even if its done, the Clear call is returning erros. ;  Your depth buffer has stencil bits if it has an S in it''s name.D3DFMT_D32, D3DFMT_D16, D3DFMT_D24X8, have no stencilD3DFMT_D24S8, D3DFMT_D15S1 have stencil.