Changeset 89183 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- May 19, 2021 8:41:10 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144524
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r89163 r89183 423 423 static int vmsvgaR3SaveExecFifo(PCPDMDEVHLPR3 pHlp, PVGASTATECC pThisCC, PSSMHANDLE pSSM); 424 424 static void vmsvgaR3CmdBufSubmit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC, RTGCPHYS GCPhysCB, SVGACBContext CBCtx); 425 # ifdef VBOX_WITH_VMSVGA3D426 static void vmsvga3dR3Free3dInterfaces(PVGASTATECC pThisCC);427 # endif428 425 #endif /* IN_RING3 */ 429 426 … … 5760 5757 RTCritSectDelete(&pSVGAState->CritSectCmdBuf); 5761 5758 } 5762 5763 # ifdef VBOX_WITH_VMSVGA3D5764 vmsvga3dR3Free3dInterfaces(pThisCC);5765 # endif5766 5759 } 5767 5760 … … 5834 5827 * @param pThisCC The VGA/VMSVGA state for ring-3. 5835 5828 */ 5836 static int vmsvgaR3Init3dInterfaces(P VGASTATE pThis, PVGASTATECC pThisCC)5829 static int vmsvgaR3Init3dInterfaces(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC) 5837 5830 { 5838 5831 #ifndef VMSVGA3D_DX … … 5880 5873 /* 3D interface is required. */ 5881 5874 if (pSVGAState->pFuncs3D) 5882 return VINF_SUCCESS; 5883 5884 rc = VERR_NOT_SUPPORTED; 5875 { 5876 rc = pSVGAState->pFuncs3D->pfnInit(pDevIns, pThis, pThisCC); 5877 if (RT_SUCCESS(rc)) 5878 return VINF_SUCCESS; 5879 } 5880 else 5881 rc = VERR_NOT_SUPPORTED; 5885 5882 } 5886 5883 … … 6118 6115 vmsvgaR3StateTerm(pThis, pThisCC); 6119 6116 6117 # ifdef VBOX_WITH_VMSVGA3D 6118 vmsvga3dR3Free3dInterfaces(pThisCC); 6119 # endif 6120 6120 6121 RTMemFree(pThisCC->svga.pSvgaR3State); 6121 6122 pThisCC->svga.pSvgaR3State = NULL; … … 6206 6207 { 6207 6208 /* Load a 3D backend. */ 6208 rc = vmsvgaR3Init3dInterfaces(pThis, pThisCC); 6209 if (RT_SUCCESS(rc)) 6210 rc = pSVGAState->pFuncs3D->pfnInit(pDevIns, pThis, pThisCC); 6211 6209 rc = vmsvgaR3Init3dInterfaces(pDevIns, pThis, pThisCC); 6212 6210 if (RT_FAILURE(rc)) 6213 6211 {
Note:
See TracChangeset
for help on using the changeset viewer.