[4/5] d3dx9: Implement D3DXCreateVolumeTextureFromFileInMemoryEx.

Matteo Bruni matteo.mystral at gmail.com
Thu Jun 28 07:28:26 CDT 2012


2012/6/27 Józef Kucia <joseph.kucia at gmail.com>:
> ---

> +    for (mip_level = 0; mip_level < mip_levels; mip_level++)
> +    {
> +        hr = calculate_dds_surface_size(src_info, width, height, &src_pitch, &mip_level_size);
> +        if (FAILED(hr)) return hr;
...
> +        hr = D3DXLoadVolumeFromMemory(volume, palette, NULL, pixels, src_info->Format,
> +            src_pitch, mip_level_size, NULL, &box, filter, color_key);

mip_level_size would be the source slice pitch, right? I'd just call
it like that.



More information about the wine-devel mailing list