VirtualBox

Ignore:
Timestamp:
Jun 17, 2013 10:11:35 AM (12 years ago)
Author:
vboxsync
Message:

wine: fix texture cleanup

File:
1 edited

Legend:

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

    r46521 r46579  
    139139    TRACE("texture %p.\n", texture);
    140140
     141#ifdef VBOX_WITH_WINE_FIX_TEXCLEAR
     142    /* make texture unload first, because otherwise we may fail on context_acquire done for texture cleanup
     143     * because the swapchain's surfaces might be destroyed and we may fail to select any render target in context_acquire */
     144    wined3d_texture_unload(texture);
     145#endif
     146
    141147    for (i = 0; i < sub_count; ++i)
    142148    {
     
    147153    }
    148154
     155#ifndef VBOX_WITH_WINE_FIX_TEXCLEAR
    149156    wined3d_texture_unload(texture);
     157#endif
    150158    HeapFree(GetProcessHeap(), 0, texture->sub_resources);
    151159    resource_cleanup(&texture->resource);
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