Skip to content

Commit

Permalink
[d3d11] Avoid UB declaring the UnmappedSubresource constant
Browse files Browse the repository at this point in the history
  • Loading branch information
bylaws authored Nov 15, 2024
1 parent 12c2b2f commit 04c942c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d11/d3d11_texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace dxvk {

public:

static constexpr D3D11_MAP UnmappedSubresource = D3D11_MAP(-1u);
static const D3D11_MAP UnmappedSubresource = D3D11_MAP(-1u);

D3D11CommonTexture(
ID3D11Resource* pInterface,
Expand Down

0 comments on commit 04c942c

Please sign in to comment.