Commit d8fa22be authored by Jan Möbius's avatar Jan Möbius

Fixed some cppcheck warnings




git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15858 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d46aece3
......@@ -384,12 +384,15 @@ getRenderObjects(IRenderer* _renderer, GLState& _state , const DrawModes::DrawM
if( (points_.size()/2 == colors4f_.size()) ) {
// One color entry per line segment (alpha channel available
// TODO : Implement this mode
} else if ((line_mode_ == LineSegmentsMode) && (points_.size()/2 == colors_.size()) ) {
// One color entry per line segment (no alpha channel available and uchars as colors)
// TODO : Implement this mode
} else {
// No colors. Just draw the segments
// TODO : Implement this mode
}
......@@ -424,7 +427,7 @@ getRenderObjects(IRenderer* _renderer, GLState& _state , const DrawModes::DrawM
glBufferDataARB(GL_ARRAY_BUFFER_ARB, 3 * points_.size() * 4 , vboData_ , GL_STATIC_DRAW_ARB);
// Remove the local storage
delete(vboData_);
delete[] vboData_;
// Update done.
updateVBO_ = false;
......
......@@ -179,7 +179,7 @@ public:
ColorVector& colors() { return colors_; }
/// get and set always on top
bool& alwaysOnTop() { return draw_always_on_top; updateVBO_ = true; }
bool& alwaysOnTop() { updateVBO_ = true; return draw_always_on_top; }
void updateVBO() { updateVBO_ = true; };
......
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