VirtualBox

Changeset 42255 in vbox


Ignore:
Timestamp:
Jul 20, 2012 11:57:44 AM (13 years ago)
Author:
vboxsync
Message:

wine/wddm: shared resource fixes

File:
1 edited

Legend:

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

    r41109 r42255  
    690690    if (VBOXSHRC_IS_SHARED(texture))
    691691    {
     692        struct wined3d_context * context;
    692693        Assert(shared_handle);
    693694        for (i = 0; i < texture->baseTexture.levels; ++i)
     
    723724#endif
    724725
    725         if (!VBOXSHRC_IS_SHARED(texture))
    726         {
    727             struct wined3d_context * context;
    728 
    729             Assert(!device->isInDraw);
    730 
    731             /* flush to ensure the texture is allocated/referenced before it is used/released by another
    732              * process opening/creating it */
    733             context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD);
    734             if (context->valid)
    735             {
    736                 wglFlush();
    737             }
    738             else
    739             {
    740                 ERR("invalid context!");
    741             }
    742             context_release(context);
    743         }
     726        Assert(!device->isInDraw);
     727
     728        /* flush to ensure the texture is allocated/referenced before it is used/released by another
     729         * process opening/creating it */
     730        context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD);
     731        if (context->valid)
     732        {
     733            wglFlush();
     734        }
     735        else
     736        {
     737            ERR("invalid context!");
     738        }
     739        context_release(context);
    744740    }
    745741    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