dolphin/Source
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
..
Android Merge pull request #5465 from sepalani/gc-bios 2017-05-26 10:23:03 +02:00
Core D3D/Render: Get rid of undefined behavior in Create3DVisionTexture 2017-05-28 23:28:00 -04:00
DSPSpy Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
DSPTool Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
PCH Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
UnitTests AudioCommon: add Cubeb backend 2017-05-27 18:28:56 -07:00
VSProps Externals: remove PortAudio 2017-05-27 18:28:57 -07:00
.clang-format clang-format: Sort windows.h before other headers 2017-01-23 00:35:09 -08:00
CMakeLists.txt CMake: add CMAKE_CXX_STANDARD_REQUIRED=ON 2017-03-14 13:52:02 -07:00
dolphin-emu.sln Externals: remove PortAudio 2017-05-27 18:28:57 -07:00