Skip to content

Commit a995e81

Browse files
committed
workaround fix vs2019
1 parent ea33d03 commit a995e81

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

gframe/drawing.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ void Game::DrawSelectionLine(irr::video::S3DVertex* vec, bool stipple, irr::vide
108108
const irr::f32 invW = 1.0f / point[3];
109109
return irr::core::vector3df(point[0] * invW, point[1] * invW, point[2] * invW);
110110
};
111-
constexpr size_t THICK_LINE_VERTICES_PER_SEGMENT = 8;
112-
constexpr size_t THICK_LINE_INDICES_PER_SEGMENT = 30;
111+
// must be static due to a VS2019 compiler bug
112+
static constexpr size_t THICK_LINE_VERTICES_PER_SEGMENT = 8;
113+
static constexpr size_t THICK_LINE_INDICES_PER_SEGMENT = 30;
113114
const auto lerpProjected = [](const ProjectedPoint& start, const ProjectedPoint& end, irr::f32 t) {
114115
ProjectedPoint result;
115116
result.screen = start.screen + (end.screen - start.screen) * t;

0 commit comments

Comments
 (0)