VirtualBox

Ignore:
Timestamp:
Aug 31, 2010 11:16:00 AM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: 1st 3d app working under Aero! shared textures working

File:
1 edited

Legend:

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

    r32107 r32127  
    42314231{
    42324232    VBOXWDDMDISP_NSCADD NscAdd;
     4233    BOOL bReinitRenderData = TRUE;
    42334234
    42344235    do
    42354236    {
    4236         NscAdd.pvCommandBuffer = pDevice->DefaultContext.ContextInfo.pCommandBuffer;
    4237         NscAdd.cbCommandBuffer = pDevice->DefaultContext.ContextInfo.CommandBufferSize;
    4238         NscAdd.pAllocationList = pDevice->DefaultContext.ContextInfo.pAllocationList;
    4239         NscAdd.cAllocationList = pDevice->DefaultContext.ContextInfo.AllocationListSize;
    4240         NscAdd.pPatchLocationList = pDevice->DefaultContext.ContextInfo.pPatchLocationList;
    4241         NscAdd.cPatchLocationList = pDevice->DefaultContext.ContextInfo.PatchLocationListSize;
    4242         NscAdd.cAllocations = 0;
     4237        if (bReinitRenderData)
     4238        {
     4239            NscAdd.pvCommandBuffer = pDevice->DefaultContext.ContextInfo.pCommandBuffer;
     4240            NscAdd.cbCommandBuffer = pDevice->DefaultContext.ContextInfo.CommandBufferSize;
     4241            NscAdd.pAllocationList = pDevice->DefaultContext.ContextInfo.pAllocationList;
     4242            NscAdd.cAllocationList = pDevice->DefaultContext.ContextInfo.AllocationListSize;
     4243            NscAdd.pPatchLocationList = pDevice->DefaultContext.ContextInfo.pPatchLocationList;
     4244            NscAdd.cPatchLocationList = pDevice->DefaultContext.ContextInfo.PatchLocationListSize;
     4245            NscAdd.cAllocations = 0;
     4246            bReinitRenderData = FALSE;
     4247        }
    42434248
    42444249        EnterCriticalSection(&pDevice->DirtyAllocListLock);
     
    42904295            pDevice->DefaultContext.ContextInfo.PatchLocationListSize = RenderData.NewPatchLocationListSize;
    42914296            pDevice->DefaultContext.ContextInfo.pPatchLocationList = RenderData.pNewPatchLocationList;
     4297            bReinitRenderData = TRUE;
    42924298        }
    42934299        else
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