Loading common/gal/opengl/opengl_gal.cpp +0 −21 Original line number Original line Diff line number Diff line Loading @@ -588,13 +588,6 @@ inline void OPENGL_GAL::drawLineQuad( const VECTOR2D& aStartPoint, const VECTOR2 double lineLength = startEndVector.EuclideanNorm(); double lineLength = startEndVector.EuclideanNorm(); double scale = 0.5 * lineWidth / lineLength; double scale = 0.5 * lineWidth / lineLength; #ifdef __WXDEBUG__ if( lineLength > 0.0 ) { wxLogDebug( wxT( "Tried to draw line with length <= 0" ) ); } #endif /* __WXDEBUG__ */ if( lineLength <= 0.0 ) if( lineLength <= 0.0 ) return; return; Loading Loading @@ -1098,13 +1091,6 @@ void OPENGL_GAL::DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEn void OPENGL_GAL::DrawCircle( const VECTOR2D& aCenterPoint, double aRadius ) void OPENGL_GAL::DrawCircle( const VECTOR2D& aCenterPoint, double aRadius ) { { #ifdef __WXDEBUG__ if( aRadius > 0.0 ) { wxLogDebug( wxT( "Tried to draw circle with radius <= 0" ) ); } #endif /* __WXDEBUG__ */ if( isUseShader ) if( isUseShader ) { { if( isFillEnabled ) if( isFillEnabled ) Loading Loading @@ -1663,13 +1649,6 @@ int OPENGL_GAL::BeginGroup() void OPENGL_GAL::EndGroup() void OPENGL_GAL::EndGroup() { { #ifdef __WXDEBUG__ if( curVboItem->GetSize() != 0 ) { wxLogDebug( wxT( "Tried to add group that contains nothing" ) ); } #endif /* __WXDEBUG__ */ vboSize += curVboItem->GetSize(); vboSize += curVboItem->GetSize(); curVboItem = NULL; curVboItem = NULL; isGrouping = false; isGrouping = false; Loading Loading
common/gal/opengl/opengl_gal.cpp +0 −21 Original line number Original line Diff line number Diff line Loading @@ -588,13 +588,6 @@ inline void OPENGL_GAL::drawLineQuad( const VECTOR2D& aStartPoint, const VECTOR2 double lineLength = startEndVector.EuclideanNorm(); double lineLength = startEndVector.EuclideanNorm(); double scale = 0.5 * lineWidth / lineLength; double scale = 0.5 * lineWidth / lineLength; #ifdef __WXDEBUG__ if( lineLength > 0.0 ) { wxLogDebug( wxT( "Tried to draw line with length <= 0" ) ); } #endif /* __WXDEBUG__ */ if( lineLength <= 0.0 ) if( lineLength <= 0.0 ) return; return; Loading Loading @@ -1098,13 +1091,6 @@ void OPENGL_GAL::DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEn void OPENGL_GAL::DrawCircle( const VECTOR2D& aCenterPoint, double aRadius ) void OPENGL_GAL::DrawCircle( const VECTOR2D& aCenterPoint, double aRadius ) { { #ifdef __WXDEBUG__ if( aRadius > 0.0 ) { wxLogDebug( wxT( "Tried to draw circle with radius <= 0" ) ); } #endif /* __WXDEBUG__ */ if( isUseShader ) if( isUseShader ) { { if( isFillEnabled ) if( isFillEnabled ) Loading Loading @@ -1663,13 +1649,6 @@ int OPENGL_GAL::BeginGroup() void OPENGL_GAL::EndGroup() void OPENGL_GAL::EndGroup() { { #ifdef __WXDEBUG__ if( curVboItem->GetSize() != 0 ) { wxLogDebug( wxT( "Tried to add group that contains nothing" ) ); } #endif /* __WXDEBUG__ */ vboSize += curVboItem->GetSize(); vboSize += curVboItem->GetSize(); curVboItem = NULL; curVboItem = NULL; isGrouping = false; isGrouping = false; Loading