Changeset 85438 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Jul 23, 2020 2:30:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r85368 r85438 589 589 } 590 590 591 void vmsvgaR3ResetScreens(PVGASTATE CC pThisCC)591 void vmsvgaR3ResetScreens(PVGASTATE pThis, PVGASTATECC pThisCC) 592 592 { 593 593 # ifdef VBOX_WITH_VMSVGA3D 594 for (uint32_t idScreen = 0; idScreen < (uint32_t)RT_ELEMENTS(pThisCC->svga.pSvgaR3State->aScreens); ++idScreen) 595 { 596 VMSVGASCREENOBJECT *pScreen = vmsvgaR3GetScreenObject(pThisCC, idScreen); 597 if (pScreen) 598 vmsvga3dDestroyScreen(pThisCC, pScreen); 594 if (pThis->svga.f3DEnabled) 595 { 596 for (uint32_t idScreen = 0; idScreen < (uint32_t)RT_ELEMENTS(pThisCC->svga.pSvgaR3State->aScreens); ++idScreen) 597 { 598 VMSVGASCREENOBJECT *pScreen = vmsvgaR3GetScreenObject(pThisCC, idScreen); 599 if (pScreen) 600 vmsvga3dDestroyScreen(pThisCC, pScreen); 601 } 599 602 } 600 603 # else 601 RT_NOREF(pThis CC);604 RT_NOREF(pThis, pThisCC); 602 605 # endif 603 606 } … … 3107 3110 Assert(pThisCC->svga.pvFIFOExtCmdParam == NULL); 3108 3111 3109 vmsvgaR3ResetScreens(pThis CC);3112 vmsvgaR3ResetScreens(pThis, pThisCC); 3110 3113 # ifdef VBOX_WITH_VMSVGA3D 3111 3114 if (pThis->svga.f3DEnabled) … … 3122 3125 3123 3126 /* The screens must be reset on the FIFO thread, because they may use 3D resources. */ 3124 vmsvgaR3ResetScreens(pThis CC);3127 vmsvgaR3ResetScreens(pThis, pThisCC); 3125 3128 break; 3126 3129
Note:
See TracChangeset
for help on using the changeset viewer.