VirtualBox

Changeset 37760 in vbox for trunk


Ignore:
Timestamp:
Jul 4, 2011 12:14:22 PM (13 years ago)
Author:
vboxsync
Message:

WDDM/3D: fix windows expirience index crashed on win7 with ati cards

Location:
trunk/src/VBox/Additions
Files:
3 edited

Legend:

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

    r33656 r37760  
    11541154    if (Src == This)
    11551155    {
    1156         IWineD3DSurface_LockRect(iface, &dlock, NULL, 0);
     1156        ret = IWineD3DSurface_LockRect(iface, &dlock, NULL, 0);
     1157        if (FAILED(ret))
     1158        {
     1159            goto error;
     1160        }
    11571161        slock = dlock;
    11581162        sEntry = This->resource.format_desc;
     
    11731177                }
    11741178            }
    1175             IWineD3DSurface_LockRect((IWineD3DSurface *) Src, &slock, NULL, WINED3DLOCK_READONLY);
     1179            ret = IWineD3DSurface_LockRect((IWineD3DSurface *) Src, &slock, NULL, WINED3DLOCK_READONLY);
     1180            if (FAILED(ret))
     1181            {
     1182                goto error;
     1183            }
    11761184            sEntry = Src->resource.format_desc;
    11771185        }
     
    11801188            sEntry = dEntry;
    11811189        }
     1190
    11821191        if (DestRect)
    1183             IWineD3DSurface_LockRect(iface, &dlock, &xdst, 0);
     1192            ret = IWineD3DSurface_LockRect(iface, &dlock, &xdst, 0);
    11841193        else
    1185             IWineD3DSurface_LockRect(iface, &dlock, NULL, 0);
     1194            ret = IWineD3DSurface_LockRect(iface, &dlock, NULL, 0);
     1195
     1196        if (FAILED(ret))
     1197        {
     1198            goto error;
     1199        }
    11861200    }
    11871201
     
    18861900          This, pRect, Flags, pLockedRect, This->resource.allocatedMemory);
    18871901
     1902    if (!This->resource.allocatedMemory)
     1903    {
     1904        ERR("Can't LockRect, This->resource.allocatedMemory is NULL\n");
     1905        return WINED3DERR_NOTAVAILABLE;
     1906    }
     1907
    18881908    pLockedRect->Pitch = IWineD3DSurface_GetPitch(iface);
    18891909
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c

    r35845 r37760  
    369369            crNetRecv();
    370370    }
     371}
     372
     373void PACKSPU_APIENTRY packspu_ChromiumParameteriCR(GLenum target, GLint value)
     374{
     375    if (GL_SHARE_CONTEXT_RESOURCES_CR==target)
     376    {
     377        crStateShareContext(value);
     378    }
     379    crPackChromiumParameteriCR(target, value);
    371380}
    372381
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special

    r33988 r37760  
    107107VBoxPackAttachThread
    108108VBoxPackDetachThread
     109ChromiumParameteriCR
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