dolphin/Source/Core
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
..
AudioCommon CubebStream: Add missing <vector> include 2017-05-27 23:50:39 -04:00
Common Add CubebUtils namespace and hook up cubeb logging 2017-05-27 18:28:57 -07:00
Core Add CubebUtils namespace and hook up cubeb logging 2017-05-27 18:28:57 -07:00
DiscIO Check TMD sizes using the actual constant 2017-05-26 11:27:43 +02:00
DolphinNoGUI Tools: Load GameCube BIOS added 2017-05-22 22:44:21 +01:00
DolphinQt2 Externals/cubeb: add Visual Studio build files 2017-05-27 18:28:56 -07:00
DolphinWX Merge pull request #5494 from leoetlino/file-selector 2017-05-28 20:24:17 +02:00
InputCommon Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
UICommon Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
VideoBackends D3D/Render: Get rid of undefined behavior in Create3DVisionTexture 2017-05-28 23:28:00 -04:00
VideoCommon MSVC: define HAVE_FFMPEG 2017-05-26 00:53:58 -07:00
CMakeLists.txt Moved NoGUI out of DolphinWx. 2017-03-08 01:24:18 -08:00