VirtualBox

Ignore:
Timestamp:
Aug 8, 2012 2:16:44 PM (13 years ago)
Author:
vboxsync
Message:

wddm/3d: fix black scren under Aero regression

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
Files:
2 edited

Legend:

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

    r42652 r42683  
    45664566#endif
    45674567
    4568             if (RTListIsEmpty(&pDevice->SwapchainList))
     4568#if 0 /* <- always create an offscreen render target here since wined3dwddm makes host
     4569       * to postpone any host window sizing until it becomes visible (which is done to prevent flikering on *nix hosts)
     4570       * and thus back/front-buffer data is invalid until then
     4571       * and in case the 3d app is running under Aero enabled, the window will never become visible and thus never resized
     4572       * to the requested values */
     4573            if (!pResource->Flags.SharedResource /* <- the Shared must NOT be a swapchain (on-screen) render target
     4574                                                  * since it will be non-upside-down,
     4575                                                  * while the app opening the resource would use it as an off-screen,
     4576                                                  * i.e. upside-down */
     4577                    && RTListIsEmpty(&pDevice->SwapchainList))
    45694578            {
    45704579                bCreateSwapchain = true;
     
    45774586            }
    45784587            else
    4579             {
     4588#endif
     4589            {
     4590                /* make sure the device is created */
     4591                IDirect3DDevice9 *pDevice9If = VBOXDISP_D3DEV(pDevice);
    45804592                for (UINT i = 0; i < pResource->SurfCount; ++i)
    45814593                {
     
    45844596
    45854597                    IDirect3DSurface9* pD3D9Surf;
    4586                     hr = pDevice->pDevice9If->CreateRenderTarget(pAllocation->SurfDesc.width,
     4598                    hr = pDevice9If->CreateRenderTarget(pAllocation->SurfDesc.width,
    45874599                            pAllocation->SurfDesc.height,
    45884600                            vboxDDI2D3DFormat(pResource->Format),
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispDbg.cpp

    r42027 r42683  
    116116DWORD g_VBoxVDbgFLogFlow = 0;
    117117
    118 DWORD g_VBoxVDbgCfgMaxDirectRts = 0;
     118DWORD g_VBoxVDbgCfgMaxDirectRts = 3;
    119119DWORD g_VBoxVDbgCfgForceDummyDevCreate = 0;
    120120
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