VirtualBox

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


Ignore:
Timestamp:
Jun 12, 2024 12:28:21 PM (11 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163492
Message:

Devices/Graphics: D3D_RELEASE cleanup. bugref:9830

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

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

    r104874 r104890  
    7777/* Always flush after submitting a draw call for debugging. */
    7878//#define DX_FLUSH_AFTER_DRAW
    79 
    80 /* This is not available on non Windows hosts. */
    81 #ifndef D3D_RELEASE
    82 # define D3D_RELEASE(a_Ptr) do { if ((a_Ptr)) (a_Ptr)->Release(); (a_Ptr) = NULL; } while (0)
    83 #endif
    8479
    8580#define D3D_RELEASE_ARRAY(a_Count, a_papArray) do { \
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-internal.h

    r102714 r104890  
    14051405                            PVMSVGA3DSURFACE pSurface, void *pvData, uint32_t cbRowPitch, uint32_t cbDepthPitch);
    14061406
    1407 #if defined(RT_OS_WINDOWS)
    14081407#define D3D_RELEASE(ptr) do { \
    14091408    if (ptr) \
     
    14131412    } \
    14141413} while (0)
    1415 #endif
    14161414
    14171415#if defined(VMSVGA3D_DIRECT3D)
Note: See TracChangeset for help on using the changeset viewer.

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