Roderick Colenbrander : wined3d: Set conversion flags for format descriptors having a convert function.
Alexandre Julliard
julliard at winehq.org
Mon May 17 09:39:34 CDT 2010
Module: wine
Branch: master
Commit: f892003194ebe969c60020d796c8c570ea1a8045
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f892003194ebe969c60020d796c8c570ea1a8045
Author: Roderick Colenbrander <thunderbird2k at gmail.com>
Date: Mon May 17 13:11:38 2010 +0200
wined3d: Set conversion flags for format descriptors having a convert function.
---
dlls/wined3d/surface.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index ff661e7..2d7ff23 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1568,7 +1568,7 @@ static void surface_prepare_texture_internal(IWineD3DSurfaceImpl *surface,
if (surface->Flags & alloc_flag) return;
d3dfmt_get_conv(surface, TRUE, TRUE, &desc, &convert);
- if(convert != NO_CONVERSION) surface->Flags |= SFLAG_CONVERTED;
+ if(convert != NO_CONVERSION || desc.convert) surface->Flags |= SFLAG_CONVERTED;
else surface->Flags &= ~SFLAG_CONVERTED;
surface_bind_and_dirtify(surface, srgb);
@@ -4577,7 +4577,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadLocation(IWineD3DSurface *iface, D
/* Don't use PBOs for converted surfaces. During PBO conversion we look at SFLAG_CONVERTED
* but it isn't set (yet) in all cases it is getting called. */
- if((convert != NO_CONVERSION) && (This->Flags & SFLAG_PBO)) {
+ if(((convert != NO_CONVERSION) || desc.convert) && (This->Flags & SFLAG_PBO)) {
TRACE("Removing the pbo attached to surface %p\n", This);
surface_remove_pbo(This, gl_info);
}
More information about the wine-cvs
mailing list