Skip to content

Commit

Permalink
programmable renderer: remove the warnings on drawing mesh...
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Aug 11, 2013
1 parent eeaca6c commit 4e25bc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/openFrameworks/gl/ofGLProgrammableRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,11 @@ void ofGLProgrammableRenderer::draw(ofMesh & vertexData, ofPolyRenderMode render
#else

// OpenGL
/* some things are internally still using ofMesh
if(!wrongUseLoggedOnce){
ofLogWarning("ofGLProgrammableRenderer") << "draw(): drawing an ofMesh or ofPolyline directly is deprecated, use a ofVboMesh";
wrongUseLoggedOnce = true;
}
}*/

meshVbo.setMesh(vertexData, GL_DYNAMIC_DRAW, useColors, useTextures, useNormals);

Expand Down Expand Up @@ -190,10 +191,11 @@ void ofGLProgrammableRenderer::draw( of3dPrimitive& model, ofPolyRenderMode rend

//----------------------------------------------------------
void ofGLProgrammableRenderer::draw(ofPolyline & poly){
/* some things are internally still using ofPolyline
if(!wrongUseLoggedOnce){
ofLogWarning("ofGLProgrammableRenderer") << "draw(): drawing an ofMesh or ofPolyline directly is deprecated, use a ofVboMesh or ofPath";
wrongUseLoggedOnce = true;
}
}*/
if(poly.getVertices().empty()) return;

// use smoothness, if requested:
Expand Down

0 comments on commit 4e25bc6

Please sign in to comment.