VirtualBox

Changeset 81577 in vbox for trunk


Ignore:
Timestamp:
Oct 29, 2019 10:35:47 PM (5 years ago)
Author:
vboxsync
Message:

Devices/Graphics: use the current viewport dimensions for the dummy render target in D3D backend

File:
1 edited

Legend:

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

    r81431 r81577  
    40364036                /* Create a dummy render target to satisfy D3D. This path is usually taken only to render
    40374037                 * into a depth buffer without wishing to update an actual color render target.
     4038                 * The dimensions of the render target must match the dimensions of the depth render target,
     4039                 * which is usually equal to the viewport width and height.
    40384040                 */
    40394041                IDirect3DSurface9 *pDummyRenderTarget;
    4040                 hr = pContext->pDevice->CreateRenderTarget(4,
    4041                                                            4,
     4042                hr = pContext->pDevice->CreateRenderTarget(pContext->state.RectViewPort.w,
     4043                                                           pContext->state.RectViewPort.h,
    40424044                                                           FOURCC_NULL,
    40434045                                                           D3DMULTISAMPLE_NONE,
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