1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-15 00:51:05 +00:00

DirectXTex: minor fix (no codegen impact)

This commit is contained in:
walbourn_cp 2014-06-04 15:56:21 -07:00
parent 57b4ae994d
commit 8a597ef59b

View File

@ -1869,7 +1869,7 @@ bool _StoreScanline( LPVOID pDestination, size_t size, DXGI_FORMAT format,
if ( sPtr >= ePtr ) break;
float v = XMVectorGetX( *sPtr++ );
v = std::max<float>( std::min<float>( v, 1.f ), -1.f );
*(dPtr++) = static_cast<uint16_t>( v * 32767.f );
*(dPtr++) = static_cast<int16_t>( v * 32767.f );
}
return true;
}