Commit 68b25450 authored by Jan Möbius's avatar Jan Möbius
Browse files

Unused variable for OpenGL Version < 3

parent cc0304b0
......@@ -1649,12 +1649,12 @@ void
BSplineSurfaceNodeT<BSplineSurfaceType>::
updateTexBuffers()
{
size_t knotBufSizeU = bsplineSurface_.get_knots_m().size();
size_t knotBufSizeV = bsplineSurface_.get_knots_n().size();
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();
size_t numControlPointsU = bsplineSurface_.n_control_points_m();
size_t numControlPointsV = bsplineSurface_.n_control_points_n();
size_t controlPointBufSize = numControlPointsU * numControlPointsV;
if (knotBufSizeU)
{
......@@ -1678,6 +1678,9 @@ updateTexBuffers()
#ifdef GL_VERSION_3_0
const size_t controlPointBufSize = numControlPointsU * numControlPointsV;
if (controlPointBufSize)
{
std::vector<float> controlPointBuf(controlPointBufSize * 3);
......
Supports Markdown
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