mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 19:05:46 -04:00
GPU: Fix incorrect sign extension of positions
Fixes missing objects in Skullmonkeys (again).
This commit is contained in:
@ -119,7 +119,7 @@ struct BitField
|
||||
}
|
||||
else if constexpr (std::is_signed_v<DataType>)
|
||||
{
|
||||
constexpr int shift = 8 * sizeof(DataType) - BitCount + 1;
|
||||
constexpr int shift = 8 * sizeof(DataType) - BitCount;
|
||||
return (static_cast<DataType>(data >> BitIndex) << shift) >> shift;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user