Allow cube textures to be updated.
This commit is contained in:
parent
2790923722
commit
bda8a5c08a
|
@ -1154,8 +1154,10 @@ HRESULT WINAPI IDirect3DDevice8Impl_UpdateTexture(LPDIRECT3DDEVICE8 iface, IDi
|
||||||
IDirect3DSurface8* dstSur = NULL;
|
IDirect3DSurface8* dstSur = NULL;
|
||||||
for (j = 0; j < 5; ++j) {
|
for (j = 0; j < 5; ++j) {
|
||||||
hr = IDirect3DCubeTexture8Impl_GetCubeMapSurface((LPDIRECT3DCUBETEXTURE8) src, j, i, &srcSur);
|
hr = IDirect3DCubeTexture8Impl_GetCubeMapSurface((LPDIRECT3DCUBETEXTURE8) src, j, i, &srcSur);
|
||||||
hr = IDirect3DCubeTexture8Impl_GetCubeMapSurface((LPDIRECT3DCUBETEXTURE8) dst, j, i - skipLevels, &srcSur);
|
hr = IDirect3DCubeTexture8Impl_GetCubeMapSurface((LPDIRECT3DCUBETEXTURE8) dst, j, i - skipLevels, &dstSur);
|
||||||
FIXME("D3DRTYPE_CUBETEXTURE does not support UpdateTexture yet\n");
|
|
||||||
|
IDirect3DDevice8Impl_CopyRects(iface, srcSur, NULL, 0, dstSur, NULL);
|
||||||
|
|
||||||
IDirect3DSurface8Impl_Release(srcSur);
|
IDirect3DSurface8Impl_Release(srcSur);
|
||||||
IDirect3DSurface8Impl_Release(dstSur);
|
IDirect3DSurface8Impl_Release(dstSur);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue