VirtualBox

Ignore:
Timestamp:
Jan 21, 2010 9:26:23 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/swapchain_base.c

    r23571 r25949  
    3737
    3838/* IDirect3DSwapChain IUnknown parts follow: */
    39 HRESULT WINAPI IWineD3DBaseSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface, REFIID riid, LPVOID *ppobj)
     39HRESULT WINAPI IWineD3DBaseSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface, REFIID riid, void **object)
    4040{
    41     IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;
    42     TRACE("(%p)->(%s,%p)\n", This, debugstr_guid(riid), ppobj);
    43     if (IsEqualGUID(riid, &IID_IUnknown)
    44         || IsEqualGUID(riid, &IID_IWineD3DBase)
    45         || IsEqualGUID(riid, &IID_IWineD3DSwapChain)){
    46         IWineD3DSwapChain_AddRef(iface);
    47         if(ppobj == NULL){
    48             ERR("Query interface called but now data allocated\n");
    49             return E_NOINTERFACE;
    50         }
    51         *ppobj = This;
    52         return WINED3D_OK;
    53         }
    54         *ppobj = NULL;
    55         return E_NOINTERFACE;
     41    TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), object);
     42
     43    if (IsEqualGUID(riid, &IID_IWineD3DSwapChain)
     44            || IsEqualGUID(riid, &IID_IWineD3DBase)
     45            || IsEqualGUID(riid, &IID_IUnknown))
     46    {
     47        IUnknown_AddRef(iface);
     48        *object = iface;
     49        return S_OK;
     50    }
     51
     52    WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
     53
     54    *object = NULL;
     55    return E_NOINTERFACE;
    5656}
    5757
     
    131131
    132132HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, WINED3DRASTER_STATUS *pRasterStatus) {
    133     IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;
    134133    static BOOL warned;
    135134    pRasterStatus->InVBlank = TRUE;
     
    138137    if (!warned)
    139138    {
    140         FIXME("(%p) : stub (once)\n", This);
     139        FIXME("iface %p, raster_status %p stub!\n", iface, pRasterStatus);
    141140        warned = TRUE;
    142141    }
     
    149148
    150149    TRACE("(%p)->(%p): Calling GetAdapterDisplayMode\n", This, pMode);
    151     hr = IWineD3D_GetAdapterDisplayMode(This->wineD3DDevice->wineD3D, This->wineD3DDevice->adapter->num, pMode);
     150    hr = IWineD3D_GetAdapterDisplayMode(This->device->wined3d, This->device->adapter->ordinal, pMode);
    152151
    153152    TRACE("(%p) : returning w(%d) h(%d) rr(%d) fmt(%u,%s)\n", This, pMode->Width, pMode->Height, pMode->RefreshRate,
     
    159158    IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;
    160159
    161     *ppDevice = (IWineD3DDevice *) This->wineD3DDevice;
     160    *ppDevice = (IWineD3DDevice *)This->device;
    162161
    163162    /* Note  Calling this method will increase the internal reference count
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