VirtualBox

Changeset 85153 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 9, 2020 3:48:59 PM (5 years ago)
Author:
vboxsync
Message:

Devices/Graphics: Release texture object on failure, bugref:9747

File:
1 edited

Legend:

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

    r84856 r85153  
    19331933                                                  &pSurface->bounce.pTexture,
    19341934                                                  NULL);
    1935             AssertMsgReturn(hr == D3D_OK, ("CreateTexture (systemmem) failed with %x\n", hr), VERR_INTERNAL_ERROR);
    1936         }
     1935
     1936            AssertMsgReturnStmt(hr == D3D_OK,
     1937                ("CreateTexture (systemmem) failed with %x\n", hr),
     1938                D3D_RELEASE(pSurface->u.pTexture),
     1939                VERR_INTERNAL_ERROR);
     1940        }
     1941
    19371942        AssertMsgReturn(hr == D3D_OK, ("CreateTexture INTZ failed with %x\n", hr), VERR_INTERNAL_ERROR);
    19381943
     
    20112016                                                      &pSurface->bounce.pTexture,
    20122017                                                      NULL);
    2013                 AssertMsgReturn(hr == D3D_OK, ("CreateTexture (systemmem) failed with %x\n", hr), VERR_INTERNAL_ERROR);
     2018                AssertMsgReturnStmt(hr == D3D_OK,
     2019                    ("CreateTexture (systemmem) failed with %x\n", hr),
     2020                    D3D_RELEASE(pSurface->u.pTexture),
     2021                    VERR_INTERNAL_ERROR);
    20142022
    20152023                if (pSurface->formatD3D != pSurface->d3dfmtRequested)
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