wined3d: Remove a pbo check.
This commit is contained in:
parent
515ee4e89b
commit
e324da1494
|
@ -1427,10 +1427,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetDC(IWineD3DSurface *iface, HDC *pHDC) {
|
||||||
TRACE("DIBSection at : %p\n", This->dib.bitmap_data);
|
TRACE("DIBSection at : %p\n", This->dib.bitmap_data);
|
||||||
/* copy the existing surface to the dib section */
|
/* copy the existing surface to the dib section */
|
||||||
if(This->resource.allocatedMemory) {
|
if(This->resource.allocatedMemory) {
|
||||||
/* In case of a PBO, allocatedMemory=NULL, it isn't NULL between a LockRect and a UnlockRect */
|
memcpy(This->dib.bitmap_data, This->resource.allocatedMemory, b_info->bmiHeader.biSizeImage);
|
||||||
if(!(This->Flags & SFLAG_PBO))
|
|
||||||
memcpy(This->dib.bitmap_data, This->resource.allocatedMemory, b_info->bmiHeader.biSizeImage);
|
|
||||||
/* We won't need that any more */
|
|
||||||
} else {
|
} else {
|
||||||
/* This is to make LockRect read the gl Texture although memory is allocated */
|
/* This is to make LockRect read the gl Texture although memory is allocated */
|
||||||
This->Flags &= ~SFLAG_INSYSMEM;
|
This->Flags &= ~SFLAG_INSYSMEM;
|
||||||
|
|
Loading…
Reference in New Issue