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
Core D3D/Render: Get rid of undefined behavior in Create3DVisionTexture 2017-05-28 23:28:00 -04:00
DSPSpy
DSPTool
PCH
UnitTests
VSProps
.clang-format
CMakeLists.txt
dolphin-emu.sln