[d3d8] Fix cobe texture update support [bug-3550]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[d3d8] Fix cobe texture update support [bug-3550]

Oliver Stieber
Hi,
   This patch allows cube textures to be updated fixing one of the problems in
BUG 3550

Oliver.


       
       
               
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
diff -X ignore -Nru clean/wine/dlls/d3d8/device.c smallpatches/wine/dlls/d3d8/device.c
--- clean/wine/dlls/d3d8/device.c 2005-07-28 11:16:54.000000000 +0100
+++ smallpatches/wine/dlls/d3d8/device.c 2005-10-12 19:56:19.904729832 +0100
@@ -1154,8 +1154,10 @@
     IDirect3DSurface8* dstSur = NULL;
     for (j = 0; j < 5; ++j) {
       hr = IDirect3DCubeTexture8Impl_GetCubeMapSurface((LPDIRECT3DCUBETEXTURE8) src, j, i, &srcSur);
-      hr = IDirect3DCubeTexture8Impl_GetCubeMapSurface((LPDIRECT3DCUBETEXTURE8) dst, j, i - skipLevels, &srcSur);
-      FIXME("D3DRTYPE_CUBETEXTURE does not support UpdateTexture yet\n");
+      hr = IDirect3DCubeTexture8Impl_GetCubeMapSurface((LPDIRECT3DCUBETEXTURE8) dst, j, i - skipLevels, &dstSur);
+      
+      IDirect3DDevice8Impl_CopyRects(iface, srcSur, NULL, 0, dstSur, NULL);
+
       IDirect3DSurface8Impl_Release(srcSur);
       IDirect3DSurface8Impl_Release(dstSur);
     }


Reply | Threaded
Open this post in threaded view
|

Re: [d3d8] Fix cobe texture update support [bug-3550]

Raphael-2
On Wednesday 12 October 2005 21:09, Oliver Stieber wrote:
> Hi,
>    This patch allows cube textures to be updated fixing one of the problems
> in BUG 3550
>
> Oliver.

Good catch (for a long time i was trying to find what happened)

Regards,
Raphael



attachment0 (196 bytes) Download Attachment