dolphin/Source/Core/VideoBackends
Lioncash d6b6b070bc D3D/Render: Get rid of undefined behavior in Create3DVisionTexture
pSysMem is of the type const void* -- because of this, it makes the
original delete[] call undefined behavior, as deleting a void pointer is
undefined behavior.

Also punning types into existence, like what was done for the stereo
image header is undefined behavior as well. The proper way to do this is
to either manually add all individual bytes manually, or memcpy the
struct into memory.

As we want to deallocate the memory before returning, and because
pSysMem is a const void*, we keep a unique_ptr to the data and just pass
pSysMem a raw pointer to the data.
2017-05-28 23:28:00 -04:00
..
D3D D3D/Render: Get rid of undefined behavior in Create3DVisionTexture 2017-05-28 23:28:00 -04:00
Null Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
OGL Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
Software Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
Vulkan Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
CMakeLists.txt CMake: remove references to D3D12 2017-05-26 01:16:04 -07:00