   Solved: [D3D10] ID3D10Query: ID3D10Asynchronous::GetData always returns S_FALSE
  Hello,I have a problem with ID3D10Asynchronous::GetData using ID3D10Query / D3D10_QUERY_OCCLUSION:GetData always returns S_FALSE when it is called the second time.Does anybody know what the problem could be ?My code is as follows:ID3D10Query *d3dQuery;D3D10_QUERY_DESC d3dQueryDesc;d3dQueryDesc.Query = D3D10_QUERY_OCCLUSION;d3dQueryDesc.MiscFlags = 0;SAFE_CALL(d3dDevice->CreateQuery(&d3dQueryDesc, &d3dQuery), "CreateQuery()");// SAFE_CALL only checks the return value of the called method....d3dQuery->Begin();// draw somethingd3dQuery->End();UINT64 queryData = 0;while(d3dQuery->GetData(&queryData, sizeof(UINT64), 0) == S_FALSE);// everything is OK...d3dQuery->Begin();// draw somethingd3dQuery->End();queryData = 0;while(d3dQuery->GetData(&queryData, sizeof(UINT64), 0) == S_FALSE);// GetData always returns S_FALSEThanksMr X[Edited by - Mr X on September 7, 2007 6:38:59 PM]
  I have found the problem. It was a Bug in my class managing the stencil buffers.