mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-12 13:10:14 +02:00
Code review feedback
This commit is contained in:
parent
4c5a4d3ee3
commit
dc76cc86eb
@ -609,7 +609,7 @@ HRESULT DirectX::LoadFromHDRMemory(const void* pSource, size_t size, TexMetadata
|
|||||||
if (inColor[0] == 1 && inColor[1] == 1 && inColor[2] == 1)
|
if (inColor[0] == 1 && inColor[1] == 1 && inColor[2] == 1)
|
||||||
{
|
{
|
||||||
// "Standard" Run Length Encoding
|
// "Standard" Run Length Encoding
|
||||||
size_t spanLen = inColor[3] << bitShift;
|
size_t spanLen = size_t(inColor[3]) << bitShift;
|
||||||
if (spanLen + pixelCount > mdata.width)
|
if (spanLen + pixelCount > mdata.width)
|
||||||
{
|
{
|
||||||
image.Release();
|
image.Release();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user