dolphin/Source/Core/VideoBackends/D3D
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
..
BoundingBox.cpp
BoundingBox.h
CMakeLists.txt D3D: Drop redundant interface TextureEncoder 2017-04-04 22:57:23 +10:00
D3D.vcxproj Migrate to Visual Studio 2017. 2017-05-25 15:58:59 -07:00
D3D.vcxproj.filters D3D: Drop redundant interface TextureEncoder 2017-04-04 22:57:23 +10:00
D3DBase.cpp D3D11: Support native compressed textures 2017-04-29 13:46:42 +10:00
D3DBase.h D3D11: Fix error on startup with >2.5xIR selected 2017-03-10 23:41:20 +10:00
D3DBlob.cpp
D3DBlob.h
D3DShader.cpp Core: Remove double newlines at the end of *_LOG messages. 2016-11-02 02:09:33 +00:00
D3DShader.h
D3DState.cpp VideoBackends: Always enable dual-source blending if supported. 2016-10-10 17:32:51 +02:00
D3DState.h D3D/Render: Use std::array where applicable 2017-05-28 23:28:00 -04:00
D3DTexture.cpp D3D11: Drop unused method ReplaceRGBATexture2D 2017-03-04 22:37:10 +10:00
D3DTexture.h D3D11: Drop unused method ReplaceRGBATexture2D 2017-03-04 22:37:10 +10:00
D3DUtil.cpp LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
D3DUtil.h RenderBase: Forward declare EFBAccessType 2017-01-23 12:41:26 -05:00
FramebufferManager.cpp VideoCommon: Move some common initialization logic to RenderBase 2017-03-04 16:42:16 +10:00
FramebufferManager.h VideoCommon: Move some common initialization logic to RenderBase 2017-03-04 16:42:16 +10:00
GeometryShaderCache.cpp Unify the way of setting game ID, title ID, revision 2017-03-09 15:34:14 +01:00
GeometryShaderCache.h C++ conformance fixes (MSVC /permissive-) 2017-02-15 20:37:04 -08:00
main.cpp HiresTextures: Support parsing DDS files directly 2017-04-29 00:14:23 +10:00
NativeVertexFormat.cpp VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr 2017-02-18 03:16:24 -05:00
PerfQuery.cpp
PerfQuery.h
PixelShaderCache.cpp Unify the way of setting game ID, title ID, revision 2017-03-09 15:34:14 +01:00
PixelShaderCache.h VideoCommon: Make dst_alpha state implicit. 2017-01-04 20:02:31 +01:00
PSTextureEncoder.cpp VideoBackends: Support updated texture encoding shader generators 2017-04-12 00:11:22 +10:00
PSTextureEncoder.h VideoBackends: Support updated texture encoding shader generators 2017-04-12 00:11:22 +10:00
Render.cpp D3D/Render: Get rid of undefined behavior in Create3DVisionTexture 2017-05-28 23:28:00 -04:00
Render.h VideoCommon: Drop SetDitherMode() 2017-04-18 21:55:22 +10:00
Television.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
Television.h ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
TextureCache.cpp TextureCache: Move host texture utility functions to VideoCommon 2017-04-29 13:46:43 +10:00
TextureCache.h TextureCache: Support compressed textures and pass pitch/size to upload 2017-04-29 00:14:23 +10:00
VertexManager.cpp LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
VertexManager.h VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr 2017-02-18 03:16:24 -05:00
VertexShaderCache.cpp Unify the way of setting game ID, title ID, revision 2017-03-09 15:34:14 +01:00
VertexShaderCache.h C++ conformance fixes (MSVC /permissive-) 2017-02-15 20:37:04 -08:00
VideoBackend.h
XFBEncoder.cpp specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
XFBEncoder.h