Commit 37e872e9 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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.
parent 7a1d35e5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment