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:
parent
57b4ae994d
commit
8a597ef59b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user