Commit 3bec9771 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed cppcheck warning

parent 07299b5c
......@@ -1658,8 +1658,7 @@ updateTexBuffers()
const size_t knotBufSizeU = bsplineSurface_.get_knots_m().size();
const size_t knotBufSizeV = bsplineSurface_.get_knots_n().size();
const size_t numControlPointsU = bsplineSurface_.n_control_points_m();
const size_t numControlPointsV = bsplineSurface_.n_control_points_n();
if (knotBufSizeU)
......@@ -1685,6 +1684,8 @@ updateTexBuffers()
#ifdef GL_VERSION_3_0
const size_t numControlPointsU = bsplineSurface_.n_control_points_m();
const size_t numControlPointsV = bsplineSurface_.n_control_points_n();
const size_t controlPointBufSize = numControlPointsU * numControlPointsV;
if (controlPointBufSize)
......
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