Skip to content

Commit

Permalink
Bokeh DX11 fix for Map/Unmap mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Feb 20, 2021
1 parent 25fdd14 commit 5b20a8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017-2020 Microsoft Corp
Copyright (c) 2017-2021 Microsoft Corp

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
Expand Down
1 change: 1 addition & 0 deletions XDKSamples/Graphics/Bokeh/BokehEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ namespace ATG
D3D11_MAPPED_SUBRESOURCE mapping;
context->Map(m_bokehCB.Get(), 0, D3D11_MAP::D3D11_MAP_WRITE_DISCARD, 0, &mapping);
std::memcpy(mapping.pData, &cb, sizeof(cb));
context->Unmap(m_bokehCB.Get(), 0);

context->VSSetConstantBuffers(0, 1, m_bokehCB.GetAddressOf());
context->GSSetConstantBuffers(0, 1, m_bokehCB.GetAddressOf());
Expand Down

0 comments on commit 5b20a8e

Please sign in to comment.