Skip to content

Commit 5a0ab51

Browse files
committed
Graphics/DevVGA-SVGA: Don't debug assert if some driver / service before fails to create in driverless mode (i.e. VBoxNetNAT).
svn:sync-xref-src-repo-rev: r173856
1 parent 769ce3b commit 5a0ab51

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: DevVGA-SVGA3d.cpp 113825 2026-04-12 21:32:25Z vitali.pelenjow@oracle.com $ */
1+
/* $Id: DevVGA-SVGA3d.cpp 114051 2026-04-30 09:28:21Z andreas.loeffler@oracle.com $ */
22
/** @file
33
* DevSVGA3d - VMWare SVGA device, 3D parts - Common core code.
44
*/
@@ -2005,9 +2005,7 @@ void vmsvga3dReset(PVGASTATECC pThisCC)
20052005
{
20062006
/* Deal with data from PVMSVGA3DSTATE */
20072007
PVMSVGA3DSTATE p3dState = pThisCC->svga.p3dState;
2008-
Assert(pThisCC->svga.p3dState);
2009-
2010-
if ((pThisCC->svga.p3dState))
2008+
if (pThisCC->svga.p3dState)
20112009
{
20122010
/* Destroy all leftover surfaces. */
20132011
for (uint32_t i = 0; i < p3dState->cSurfaces; i++)
@@ -2063,7 +2061,8 @@ void vmsvga3dTerminate(PVGASTATECC pThisCC)
20632061

20642062
/* Deal with data from PVMSVGA3DSTATE */
20652063
PVMSVGA3DSTATE p3dState = pThisCC->svga.p3dState;
2066-
AssertReturnVoid(p3dState);
2064+
if (!p3dState)
2065+
return;
20672066

20682067
/* Terminate the backend. */
20692068
PVMSVGAR3STATE pSvgaR3State = pThisCC->svga.pSvgaR3State;

0 commit comments

Comments
 (0)