d3d8: Don't mask out internal wined3d usage flags in surface_init().

This commit is contained in:
Henri Verbeet 2013-10-02 09:55:24 +02:00 committed by Alexandre Julliard
parent 0e681027a2
commit 7475944454

View file

@ -343,7 +343,7 @@ HRESULT surface_init(struct d3d8_surface *surface, struct d3d8_device *device, U
wined3d_mutex_lock();
hr = wined3d_surface_create(device->wined3d_device, width, height, wined3dformat_from_d3dformat(format),
usage & WINED3DUSAGE_MASK, (enum wined3d_pool)pool, multisample_type, multisample_quality,
usage, (enum wined3d_pool)pool, multisample_type, multisample_quality,
flags, surface, &d3d8_surface_wined3d_parent_ops, &surface->wined3d_surface);
wined3d_mutex_unlock();
if (FAILED(hr))