Skip to content

Commit

Permalink
hdx: Fix 1d luts using uninitialized texture buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
pkilgo-blz committed Nov 12, 2024
1 parent 2d106a1 commit ec769ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pxr/imaging/hdx/colorCorrectionTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,14 @@ HdxColorCorrectionTask::_CreateOpenColorIOResourcesImpl(
sampDesc.addressModeU = HgiSamplerAddressModeClampToEdge;
sampDesc.addressModeV = HgiSamplerAddressModeClampToEdge;

std::vector<float> lutVector = std::vector<float>(
lutValues,
lutValues + (valueCount * sizeof(float))
);

result->luts.emplace_back(
_TextureSamplerDesc{
texDesc, sampDesc, float4AdaptedLutValues});
texDesc, sampDesc, lutVector});
}

//
Expand Down

0 comments on commit ec769ab

Please sign in to comment.