Lines Matching refs:pAdapters
85 pAdapters = NULL;
158 if (pAdapters != NULL) {
160 if (pAdapters[i].pd3dContext != NULL) {
161 delete pAdapters[i].pd3dContext;
164 delete[] pAdapters;
165 pAdapters = NULL;
233 RETURN_STATUS_IF_NULL(pMgr->pAdapters, E_FAIL);
311 if (pAdapters != NULL) {
313 if (pAdapters[i].pd3dContext != NULL) {
316 D3DContext *d3dc = pAdapters[i].pd3dContext;
331 if (pAdapters != NULL) {
336 pAdapters = new D3DAdapter[adapterCount];
337 if (pAdapters == NULL) {
342 ZeroMemory(pAdapters, adapterCount * sizeof(D3DAdapter));
575 pAdapters[Adapter].state = CONTEXT_INIT_FAILED;
619 pAdapters[Adapter].state = CONTEXT_INIT_FAILED;
856 pAdapters[currentFSFocusAdapter].fsFocusWindow);
857 return pAdapters[currentFSFocusAdapter].fsFocusWindow;
865 HWND prev = pAdapters[adapterOrdinal].fsFocusWindow;
866 pAdapters[adapterOrdinal].fsFocusWindow = hWnd;
883 if (pAdapters[i].fsFocusWindow != 0) {
899 if (pAdapters[i].pd3dContext != NULL) {
900 res = pAdapters[i].pd3dContext->ResetContext();
922 pAdapters == NULL ||
923 pAdapters[adapterOrdinal].state == CONTEXT_INIT_FAILED)
932 if (pAdapters[adapterOrdinal].state == CONTEXT_NOT_INITED) {
935 if (pAdapters[adapterOrdinal].pd3dContext != NULL) {
955 pAdapters[adapterOrdinal].state =
957 pAdapters[adapterOrdinal].pd3dContext = pCtx;
959 *ppd3dContext = pAdapters[adapterOrdinal].pd3dContext;