I created a ID3D10Texture2D object and a ID3D10RenderTargetView. on rendering I'm doing the following:
pDevice->OMGetRenderTargets(1, &pFirstRenderTargetView, NULL);
pDevice->OMSetRenderTargets(1, &pSecondRenderTargetView, NULL);
pDevice->ClearRenderTargets(pSecondRenderTarget, D3DXCOLOR(0.0f, 0.0f, 0.0f, 0.0f));
pFont->DrawText(...);
pDevice->OMGetRenderTargets(1, &pSecondRenderTargetView, NULL);
pDevice->OMSetRenderTargets(1, &pFirstRenderTargetView, NULL);
ID3D10Resource* pResource = NULL;
pSecondRenderTargetView->GetResource(&pResource);
ID3D10Texture2D* pTexture = NULL;
pResource->QueryInterface(__uuidof(ID3D10Texture2D), (LPVOID*)&pTexture);
//Creating D3D10_SHADER_RESOURCE_VIEW_DESC
pDevice->CreateShaderResourceView(pTexture, &pSrvDesc, &pSecondShaderResourceView);
//Drawing pSecondShaderResourceView as sprite
but the problem is that there is no text visible