On Wed, 30 Jan 2019 at 18:56, Matteo Bruni mbruni@codeweavers.com wrote:
dlls/d3d9/buffer.c | 6 ++---- dlls/d3d9/d3d9_private.h | 22 ++++++++++++++-------- dlls/d3d9/device.c | 2 +- dlls/d3d9/texture.c | 6 +++--- 4 files changed, 20 insertions(+), 16 deletions(-)
I don't know, maybe. You use this in 5/6 of course, but I'd be tempted to just introduce e.g. a "map_access_from_usage()" helper, and use that in vertexbuffer_init() and indexbuffer_init().