VirtualBox

Ignore:
Timestamp:
Oct 31, 2011 1:37:06 PM (13 years ago)
Author:
vboxsync
Message:

wddm: avoid unnecessary window creation (caused img flickering for MacOS guest), etc.

File:
1 edited

Legend:

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

    r39130 r39150  
    43204320#ifdef VBOX_WITH_WDDM
    43214321    surface_shrc_lock(This);
    4322     surface_shrc_lock(Src);
     4322    if (Src) surface_shrc_lock(Src);
    43234323#endif
    43244324
     
    43494349
    43504350#ifdef VBOX_WITH_WDDM
    4351     if (IWineD3DSurfaceImpl_BltSys2Vram(This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx, Filter) == WINED3D_OK)
     4351    if (SrcSurface && IWineD3DSurfaceImpl_BltSys2Vram(This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx, Filter) == WINED3D_OK)
    43524352    {
    43534353        hr = WINED3D_OK;
     
    43644364#ifdef VBOX_WITH_WDDM
    43654365    surface_shrc_unlock(This);
    4366     surface_shrc_unlock(Src);
     4366    if (Src) surface_shrc_unlock(Src);
    43674367#endif
    43684368    return hr;
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