[PATCH] ddraw: Create a dynamic buffer if DDLOCK_DISCARDCONTENTS is used

Rico Schüller kgbricola at web.de
Tue Dec 4 02:13:00 CST 2012


On 03.12.2012 23:11, Stefan Dösinger wrote:
> +    DWORD pool = buffer->Caps & D3DVBCAPS_SYSTEMMEMORY ? WINED3D_POOL_SYSTEM_MEM : WINED3D_POOL_DEFAULT;
...
> +    return wined3d_buffer_create_vb(buffer->ddraw->wined3d_device,
> +        buffer->size, usage, pool, buffer, &ddraw_null_wined3d_parent_ops,
> +        wined3d_buffer);

Is there a reason why you don't use "enum wined3d_pool" for pool?

Cheers
Rico




More information about the wine-devel mailing list