VirtualBox

Ignore:
Timestamp:
May 2, 2012 8:37:46 AM (13 years ago)
Author:
vboxsync
Message:

crOpenGL,wined3d,wddm: second part of fixing resource leakage, basics for cr commands submission from r0 miniport driver (for r0 visible region reporting, WPF 3D rendering fixes w/o Aero, etc.)

File:
1 edited

Legend:

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

    r41028 r41109  
    62796279    if (surface->texture_name)
    62806280    {
    6281 #ifdef VBOX_WITH_WDDM
    6282 # ifdef DEBUG_misha
    6283         /* shared case needs testing! */
    6284         Assert(!VBOXSHRC_IS_SHARED(surface));
    6285 # endif
    6286         if (VBOXSHRC_CAN_DELETE(device, surface))
    6287 #endif
    6288         {
    6289             struct wined3d_context *context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD);
    6290             ENTER_GL();
    6291             glDeleteTextures(1, &surface->texture_name);
    6292             LEAVE_GL();
    6293             context_release(context);
    6294         }
     6281        IWineD3DDeviceImpl *This = device; /* <- to make the below texture_gl_delete macro work and avoid other modifications */
     6282        struct wined3d_context *context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD);
     6283        ENTER_GL();
     6284        texture_gl_delete(surface, surface->texture_name);
     6285        LEAVE_GL();
     6286        context_release(context);
    62956287        surface->texture_name = 0;
    62966288        surface->Flags &= ~SFLAG_CLIENT;
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