VirtualBox

Ignore:
Timestamp:
Mar 7, 2012 12:44:46 PM (13 years ago)
Author:
vboxsync
Message:

wddm/3d: shared resource destroy handling fixes

File:
1 edited

Legend:

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

    r38982 r40388  
    288288
    289289#ifdef VBOX_WITH_WDDM
    290 HRESULT WINAPI IWineD3DResourceImpl_SetDontDeleteGl(IWineD3DResource *iface) {
     290HRESULT WINAPI IWineD3DResourceImpl_SetShRcState(IWineD3DResource *iface, VBOXWINEEX_SHRC_STATE enmState) {
    291291    IWineD3DResourceImpl *This = (IWineD3DResourceImpl*)iface;
    292292    if (!VBOXSHRC_IS_SHARED(This))
     
    296296    }
    297297
    298     VBOXSHRC_SET_DONT_DELETE(This);
    299     return WINED3D_OK;
    300 }
    301 #endif
     298    switch (enmState)
     299    {
     300        case VBOXWINEEX_SHRC_STATE_GL_DISABLE:
     301            VBOXSHRC_SET_DISABLE(This);
     302            break;
     303        case VBOXWINEEX_SHRC_STATE_GL_DELETE:
     304            VBOXSHRC_SET_DELETE(This);
     305            break;
     306        default:
     307            ERR("invalid arg");
     308            return E_INVALIDARG;
     309    }
     310
     311    return WINED3D_OK;
     312}
     313#endif
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