[PATCH 4/5] wined3d: Don't free system memory when setting user memory for mipmaps.

Paul Gofman pgofman at codeweavers.com
Mon Jun 15 13:06:04 CDT 2020


On 6/15/20 19:06, Henri Verbeet wrote:
> On Sun, 14 Jun 2020 at 22:47, Paul Gofman <pgofman at codeweavers.com> wrote:
>> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49375
>> Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
>> ---
>>  dlls/ddraw/tests/ddraw7.c | 2 +-
>>  dlls/wined3d/texture.c    | 3 ++-
>>  2 files changed, 3 insertions(+), 2 deletions(-)
>>
> I think we would like to free that memory eventually though, if we
> can. Perhaps we could do something similar to what
> wined3d_texture_update_map_binding() does for PBOs?

I suppose we can check if there are any NULL user_memory left when
setting the pointer, and free system memory if there are none.




More information about the wine-devel mailing list