VirtualBox

Changeset 85438 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Jul 23, 2020 2:30:53 PM (4 years ago)
Author:
vboxsync
Message:

Devices/Graphics: fixed a debug assertion caused by a missing if (f3DEnabled)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r85368 r85438  
    589589}
    590590
    591 void vmsvgaR3ResetScreens(PVGASTATECC pThisCC)
     591void vmsvgaR3ResetScreens(PVGASTATE pThis, PVGASTATECC pThisCC)
    592592{
    593593# 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        }
    599602    }
    600603# else
    601     RT_NOREF(pThisCC);
     604    RT_NOREF(pThis, pThisCC);
    602605# endif
    603606}
     
    31073110            Assert(pThisCC->svga.pvFIFOExtCmdParam == NULL);
    31083111
    3109             vmsvgaR3ResetScreens(pThisCC);
     3112            vmsvgaR3ResetScreens(pThis, pThisCC);
    31103113# ifdef VBOX_WITH_VMSVGA3D
    31113114            if (pThis->svga.f3DEnabled)
     
    31223125
    31233126            /* The screens must be reset on the FIFO thread, because they may use 3D resources. */
    3124             vmsvgaR3ResetScreens(pThisCC);
     3127            vmsvgaR3ResetScreens(pThis, pThisCC);
    31253128            break;
    31263129
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette