1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[d3d9] Fix alignment of SubresourceData

This should match SubresourceType...
This commit is contained in:
Joshua Ashton 2020-03-02 16:11:07 +00:00
parent 27d7af65a1
commit 8c68cf1551

View File

@ -9,6 +9,7 @@
#include <list>
#include <mutex>
#include <new>
#include <type_traits>
namespace dxvk {
@ -17,7 +18,7 @@ namespace dxvk {
public:
struct alignas(16) SubresourceData { uint8_t data[sizeof(SubresourceType)]; };
using SubresourceData = std::aligned_storage_t<sizeof(SubresourceType), alignof(SubresourceType)>;
D3D9BaseTexture(
D3D9DeviceEx* pDevice,