wined3d-1DTextures: 0004,008 - update to use global memory alloc as changed in mainline

This commit is contained in:
gloriouseggroll 2018-02-19 16:14:53 -05:00
parent 96b4e33894
commit 0f313c9f99
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;