History

Fix for color bytes.

Andrzej Kapolka committed 12 years ago

Commit f0e4e031 parent d28da921 file · +1 −1Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+1−1
@@ -1970,7 +1970,7 @@ bool HeightfieldRegionVisitor::postVisit(MetavoxelInfo& info) { · 1969 unmodified lines
1970 signedLeftShift(_inheritedColorSize, _inheritedColorDepth - _depth) + HeightfieldBuffer::SHARED_EDGE,1970 signedLeftShift(_inheritedColorSize, _inheritedColorDepth - _depth) + HeightfieldBuffer::SHARED_EDGE,
1971 _containedColorDepth == -1 ? 0 :1971 _containedColorDepth == -1 ? 0 :
1972 signedLeftShift(_containedColorSize, _containedColorDepth - _depth) + HeightfieldBuffer::SHARED_EDGE);1972 signedLeftShift(_containedColorSize, _containedColorDepth - _depth) + HeightfieldBuffer::SHARED_EDGE);
1973 int colorContentsSize = extendedColorSize * extendedColorSize;1973 int colorContentsSize = extendedColorSize * extendedColorSize * DataBlock::COLOR_BYTES;
1974 1974
1975 int extendedMaterialSize = qMax(_inheritedMaterialDepth == -1 ? 0 :1975 int extendedMaterialSize = qMax(_inheritedMaterialDepth == -1 ? 0 :
1976 signedLeftShift(_inheritedMaterialSize, _inheritedMaterialDepth - _depth) + HeightfieldBuffer::SHARED_EDGE,1976 signedLeftShift(_inheritedMaterialSize, _inheritedMaterialDepth - _depth) + HeightfieldBuffer::SHARED_EDGE,