From 6e5473f646b928f180aca7dc4a9d3f60dd2a25b3 Mon Sep 17 00:00:00 2001 From: Cirilo Bernardo Date: Tue, 8 Dec 2015 18:56:30 +1100 Subject: [PATCH] Minor fix: remove reference to GLdebug() --- 3d-viewer/3d_draw.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/3d-viewer/3d_draw.cpp b/3d-viewer/3d_draw.cpp index 2937dd7047..5228074ff7 100644 --- a/3d-viewer/3d_draw.cpp +++ b/3d-viewer/3d_draw.cpp @@ -1133,20 +1133,19 @@ void EDA_3D_CANVAS::render3DComponentShape( MODULE* module, * be replaced anyway so all debugging of 3D Plugins should be * done via the new rendering system */ - if( 0 ) +#if 0 + if( isEnabled( FL_RENDER_SHOW_MODEL_BBOX ) ) { - if( isEnabled( FL_RENDER_SHOW_MODEL_BBOX ) ) - { - // Set the alpha current color to opaque - float currentColor[4]; - glGetFloatv( GL_CURRENT_COLOR,currentColor ); - currentColor[3] = 1.0f; - glColor4fv( currentColor ); + // Set the alpha current color to opaque + float currentColor[4]; + glGetFloatv( GL_CURRENT_COLOR,currentColor ); + currentColor[3] = 1.0f; + glColor4fv( currentColor ); - CBBOX thisBBox = shape3D->getBBox(); - thisBBox.GLdebug(); - } + CBBOX thisBBox = shape3D->getBBox(); + thisBBox.GLdebug(); } +#endif glPopMatrix();