Commit 5f482ae7 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed ugly picking bug, where picking fails if more then 16.8 m primitives are in the scene

parent c3f49c1e
......@@ -10,6 +10,7 @@
- Work around bitset VS2017 and earlier compiler bug
- Split the platform specific startup code into separate files
- Use explicit template instantiation to reduce incremental compile time
- Fixed ugly picking bug, where picking fails if more then 16.8 m primitives are in the scene
- <b>ACG</b>
- Fix rendering of colored mesh edges in Core Profile
- Fixed manipulator node returning nan in certain conditions
......
......@@ -165,7 +165,7 @@ color2index(const Vec4uc _rgba) const
// Combine the single unsigned chars according to masks
result = _rgba[3] >> alpha_shift_;
result <<= red_bits_;
result = _rgba[0] >> red_shift_;
result |= _rgba[0] >> red_shift_;
result <<= green_bits_;
result |= _rgba[1] >> green_shift_;
result <<= blue_bits_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment