wined3d: Some improvements for SFLAG_CONVERTED checking.
We can check this flag before setting up the gl lock, and add the surface format to the FIXME.
This commit is contained in:
parent
7a1d35e513
commit
37e872e901
|
@ -47,6 +47,10 @@ static void surface_download_data(IWineD3DSurfaceImpl *This) {
|
|||
if(myDevice->createParms.BehaviorFlags & WINED3DCREATE_MULTITHREADED) {
|
||||
ActivateContext(myDevice, myDevice->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
|
||||
}
|
||||
if(This->Flags & SFLAG_CONVERTED) {
|
||||
FIXME("Read back converted textures unsupported, format=%s\n", debug_d3dformat(This->resource.format));
|
||||
return;
|
||||
}
|
||||
|
||||
ENTER_GL();
|
||||
/* Make sure that a proper texture unit is selected, bind the texture
|
||||
|
@ -86,12 +90,6 @@ static void surface_download_data(IWineD3DSurfaceImpl *This) {
|
|||
int src_pitch = 0;
|
||||
int dst_pitch = 0;
|
||||
|
||||
if(This->Flags & SFLAG_CONVERTED) {
|
||||
FIXME("Read back converted textures unsupported\n");
|
||||
LEAVE_GL();
|
||||
return;
|
||||
}
|
||||
|
||||
if (This->Flags & SFLAG_NONPOW2) {
|
||||
unsigned char alignment = This->resource.wineD3DDevice->surface_alignment;
|
||||
src_pitch = This->bytesPerPixel * This->pow2Width;
|
||||
|
|
Loading…
Reference in New Issue