Changeset 31868 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Aug 23, 2010 3:22:09 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r31797 r31868 4154 4154 { 4155 4155 Assert(pDevice->cScreens); 4156 for (UINT i = 0; i < RT_ELEMENTS(pDevice->aScreens); ++i) 4156 UINT cProcessed = 0; 4157 for (UINT i = 0; cProcessed < pDevice->cScreens && i < RT_ELEMENTS(pDevice->aScreens); ++i) 4157 4158 { 4158 4159 PVBOXWDDMDISP_SCREEN pScreen = &pDevice->aScreens[i]; 4159 4160 if (pScreen->pDevice9If) 4160 4161 { 4161 /* @todo: make a flush */ 4162 ++cProcessed; 4163 if (pScreen->pRenderTargetRc->cAllocations == 1) 4164 { 4165 hr = pScreen->pDevice9If->Present(NULL, NULL, NULL, NULL); 4166 Assert(hr == S_OK); 4167 } 4168 else 4169 { 4170 hr = pDevice->pAdapter->D3D.pfnVBoxWineExD3DDev9Flush((IDirect3DDevice9Ex*)pScreen->pDevice9If); 4171 Assert(hr == S_OK); 4172 } 4162 4173 } 4163 4174 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DIf.cpp
r30916 r31868 39 39 if (pD3D->pfnVBoxWineExD3DDev9CreateTexture) 40 40 { 41 return S_OK; 41 pD3D->pfnVBoxWineExD3DDev9Flush = (PFNVBOXWINEEXD3DDEV9_FLUSH)GetProcAddress(pD3D->hD3DLib, "VBoxWineExD3DDev9Flush"); 42 Assert(pD3D->pfnVBoxWineExD3DDev9Flush); 43 if (pD3D->pfnVBoxWineExD3DDev9Flush) 44 { 45 return S_OK; 46 } 42 47 } 43 48 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DIf.h
r30916 r31868 35 35 PFNVBOXWINEEXD3DDEV9_CREATETEXTURE pfnVBoxWineExD3DDev9CreateTexture; 36 36 37 PFNVBOXWINEEXD3DDEV9_FLUSH pfnVBoxWineExD3DDev9Flush; 38 37 39 /* module handle */ 38 40 HMODULE hD3DLib;
Note:
See TracChangeset
for help on using the changeset viewer.