VirtualBox

Ignore:
Timestamp:
Jul 21, 2009 9:16:52 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: update to wine 1.1.26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d8/volume.c

    r19678 r21731  
    164164    TRACE("(%p) Relay\n", This);
    165165
    166     /* As d3d8 and d3d9 structures differ, pass in ptrs to where data needs to go */
    167     wined3ddesc.Format              = (WINED3DFORMAT *)&pDesc->Format;
    168     wined3ddesc.Type                = (WINED3DRESOURCETYPE *)&pDesc->Type;
    169     wined3ddesc.Usage               = &pDesc->Usage;
    170     wined3ddesc.Pool                = (WINED3DPOOL *) &pDesc->Pool;
    171     wined3ddesc.Size                = &pDesc->Size;
    172     wined3ddesc.Width               = &pDesc->Width;
    173     wined3ddesc.Height              = &pDesc->Height;
    174     wined3ddesc.Depth               = &pDesc->Depth;
    175 
    176166    EnterCriticalSection(&d3d8_cs);
    177167    hr = IWineD3DVolume_GetDesc(This->wineD3DVolume, &wined3ddesc);
    178168    LeaveCriticalSection(&d3d8_cs);
    179169
    180     if (SUCCEEDED(hr)) pDesc->Format = d3dformat_from_wined3dformat(pDesc->Format);
     170    if (SUCCEEDED(hr))
     171    {
     172        pDesc->Format = d3dformat_from_wined3dformat(wined3ddesc.Format);
     173        pDesc->Type = wined3ddesc.Type;
     174        pDesc->Usage = wined3ddesc.Usage;
     175        pDesc->Pool = wined3ddesc.Pool;
     176        pDesc->Size = wined3ddesc.Size;
     177        pDesc->Width = wined3ddesc.Width;
     178        pDesc->Height = wined3ddesc.Height;
     179        pDesc->Depth = wined3ddesc.Depth;
     180    }
    181181
    182182    return hr;
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