Skip to content

Commit

Permalink
Graphics utilities: updated CreateUniformBuffer function to clear CPU…
Browse files Browse the repository at this point in the history
… access flags for default and immutable usages
  • Loading branch information
TheMostDiligent committed Nov 10, 2023
1 parent abdf2bc commit a803763
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Graphics/GraphicsTools/src/GraphicsUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ void CreateUniformBuffer(IRenderDevice* pDevice,
CPU_ACCESS_FLAGS CPUAccessFlags,
void* pInitialData)
{
if (Usage == USAGE_DEFAULT || Usage == USAGE_IMMUTABLE)
CPUAccessFlags = CPU_ACCESS_NONE;

BufferDesc CBDesc;
CBDesc.Name = Name;
CBDesc.Size = Size;
Expand Down

0 comments on commit a803763

Please sign in to comment.