VirtualBox

Changeset 38230 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 28, 2011 5:42:00 PM (14 years ago)
Author:
vboxsync
Message:

wddm/wine: workaround chromium inability for nondefault unpack raw length settings for PBO

File:
1 edited

Legend:

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

    r38218 r38230  
    41024102    }
    41034103
     4104    if ((Src->Flags & SFLAG_PBO) && src_rect.right - src_rect.left != Src->currentDesc.Width)
     4105    {
     4106        WARN("Chromium does not support nondefault unpack row length for PBO\n");
     4107        return WINED3DERR_INVALIDCALL;
     4108    }
     4109
     4110    if((convert != NO_CONVERSION) && (Src->Flags & SFLAG_PBO)) {
     4111        WARN("conversion not supported here with PBO for src %p\n", Src);
     4112        return WINED3DERR_INVALIDCALL;
     4113    }
     4114
    41044115    d3dfmt_get_conv(Src, TRUE /* We need color keying */, TRUE /* We will use textures */,
    41054116            &desc, &convert);
     
    41244135    srcWidth = Src->currentDesc.Width;
    41254136    srcPitch = IWineD3DSurface_GetPitch(SrcSurface);
    4126 
    4127     /* Don't use PBOs for converted surfaces. During PBO conversion we look at SFLAG_CONVERTED
    4128      * but it isn't set (yet) in all cases it is getting called. */
    4129     if((convert != NO_CONVERSION) && (Src->Flags & SFLAG_PBO)) {
    4130         TRACE("Removing the pbo attached to surface %p\n", Src);
    4131         surface_remove_pbo(Src, gl_info);
    4132     }
    41334137
    41344138    if(desc.convert) {
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