On 19 August 2013 10:52, Stefan Dösinger stefan@codeweavers.com wrote:
@@ -184,7 +184,16 @@ HRESULT CDECL wined3d_volume_map(struct wined3d_volume *volume, volume, map_desc, box, flags);
if (!volume->resource.allocatedMemory)
volume->resource.allocatedMemory = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, volume->resource.size);
Can this ever happen?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2013-08-19 12:31, schrieb Henri Verbeet:
On 19 August 2013 10:52, Stefan Dösinger stefan@codeweavers.com wrote:
@@ -184,7 +184,16 @@ HRESULT CDECL wined3d_volume_map(struct wined3d_volume *volume, volume, map_desc, box, flags);
if (!volume->resource.allocatedMemory) - volume->resource.allocatedMemory = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, volume->resource.size);
Can this ever happen?
I think not, but I am not certain of this. The allocation will be needed after patch 13 though, so after the patches the end result is the same. Since the HeapAlloc call is there right now I prefer to keep it instead of possibly introducing temporary regressions.