Changeset 81291 in vbox
- Timestamp:
- Oct 15, 2019 8:23:18 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r81205 r81291 158 158 * Internal Functions * 159 159 *********************************************************************************************************************************/ 160 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps );160 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps, D3DADAPTER_IDENTIFIER9 const *pai9); 161 161 162 162 … … 219 219 AssertReturn(hr == D3D_OK, VERR_INTERNAL_ERROR); 220 220 #endif 221 D3DADAPTER_IDENTIFIER9 ai9; 222 hr = pState->pD3D9->GetAdapterIdentifier(D3DADAPTER_DEFAULT, 0, &ai9); 223 AssertReturnStmt(hr == D3D_OK, D3D_RELEASE(pState->pD3D9), VERR_INTERNAL_ERROR); 224 221 225 hr = pState->pD3D9->GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &pState->caps); 222 AssertReturn (hr == D3D_OK, VERR_INTERNAL_ERROR);223 224 vmsvgaDumpD3DCaps(&pState->caps );226 AssertReturnStmt(hr == D3D_OK, D3D_RELEASE(pState->pD3D9), VERR_INTERNAL_ERROR); 227 228 vmsvgaDumpD3DCaps(&pState->caps, &ai9); 225 229 226 230 /* Check if INTZ is supported. */ … … 6215 6219 } 6216 6220 6217 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps )6221 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps, D3DADAPTER_IDENTIFIER9 const *pai9) 6218 6222 { 6219 6223 bool const fBufferingSaved = RTLogRelSetBuffering(true /*fBuffered*/); 6224 6225 LogRel(("\nD3D9 adapter: %s %RX16:%RX16 [%s, version %d.%d.%d.%d]\n", 6226 pai9->Description, pai9->VendorId, pai9->DeviceId, pai9->Driver, 6227 RT_HI_U16(pai9->DriverVersion.HighPart), RT_LO_U16(pai9->DriverVersion.HighPart), 6228 RT_HI_U16(pai9->DriverVersion.LowPart), RT_LO_U16(pai9->DriverVersion.LowPart))); 6220 6229 6221 6230 LogRel(("\nD3D device caps: DevCaps2:\n"));
Note:
See TracChangeset
for help on using the changeset viewer.