Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
3bec9771
Commit
3bec9771
authored
Oct 25, 2016
by
Jan Möbius
Browse files
Fixed cppcheck warning
parent
07299b5c
Changes
1
Show whitespace changes
Inline
Side-by-side
ObjectTypes/BSplineSurface/BSplineSurfaceNodeT.cc
View file @
3bec9771
...
@@ -1658,8 +1658,7 @@ updateTexBuffers()
...
@@ -1658,8 +1658,7 @@ updateTexBuffers()
const
size_t
knotBufSizeU
=
bsplineSurface_
.
get_knots_m
().
size
();
const
size_t
knotBufSizeU
=
bsplineSurface_
.
get_knots_m
().
size
();
const
size_t
knotBufSizeV
=
bsplineSurface_
.
get_knots_n
().
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
)
if
(
knotBufSizeU
)
...
@@ -1685,6 +1684,8 @@ updateTexBuffers()
...
@@ -1685,6 +1684,8 @@ updateTexBuffers()
#ifdef GL_VERSION_3_0
#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
;
const
size_t
controlPointBufSize
=
numControlPointsU
*
numControlPointsV
;
if
(
controlPointBufSize
)
if
(
controlPointBufSize
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment