VirtualBox

Ignore:
Timestamp:
Sep 8, 2022 9:22:45 PM (2 years ago)
Author:
vboxsync
Message:

Add/3D/mesa,WDDM: Don't release the presentation group reference at the end of NineDevice9_ctor, makes little sense to consume a reference for the pPresentationFactory parameter but not the pD3D9Ex one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/gallium/VBoxGaD3DDevice9Ex.cpp

    r96407 r96662  
    7474    if (SUCCEEDED(hr))
    7575    {
     76        /** @todo r=bird: The mpPresentationGroup parameter seems to always have been
     77         * consumed by the NineDevice9_ctor() code, while for the mpD3D9Ex parameter
     78         * it grabs a reference.  I've commented out the bogus looking
     79         * ID3DPresentGroup_Release call from NineDevice9_ctor() rather than balancing
     80         * reference to mpPresentionGroup here based on the hr value. See r153545.
     81         * Please verify and rework the fix to your liking.
     82         *
     83         * (The release call in cleanup() would call into no man's land early during
     84         * vlc.exe (v3.0.17.4) video startup on 32-bit w7 rtm.)
     85         */
    7686        hr = D3DAdapter9_CreateDeviceEx(mpD3D9Ex->GetAdapter9(),
    7787                                        D3DADAPTER_DEFAULT, DeviceType,
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