mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
wined3d-1DTextures: 0004,008 - update to use global memory alloc as changed in mainline
This commit is contained in:
parent
96b4e33894
commit
0f313c9f99
@ -154,7 +154,7 @@ index 2a172ee..f81d7cf 100644
|
||||
+ }
|
||||
+
|
||||
+ if (level_count > ~(SIZE_T)0 / layer_count
|
||||
+ || !(surfaces = wined3d_calloc(level_count * layer_count, sizeof(*surfaces))))
|
||||
+ || !(surfaces = heap_calloc(level_count * layer_count, sizeof(*surfaces))))
|
||||
+ {
|
||||
+ wined3d_texture_cleanup_sync(texture);
|
||||
+ return E_OUTOFMEMORY;
|
||||
|
@ -39,7 +39,7 @@ index c5a4f0c..198d2a6 100644
|
||||
+ {
|
||||
+ WARN_(d3d_perf)("Downloading all miplevel layers to get the surface data for a single sub-resource.\n");
|
||||
+
|
||||
+ if (!(temporary_mem = wined3d_calloc(texture->layer_count, sub_resource->size)))
|
||||
+ if (!(temporary_mem = heap_calloc(texture->layer_count, sub_resource->size)))
|
||||
+ {
|
||||
+ ERR("Out of memory.\n");
|
||||
+ return;
|
||||
|
Loading…
Reference in New Issue
Block a user