]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Disable some debug code that slows down the editor to a crawl (compile fails without...
authorMario <mario@smbclan.net>
Fri, 14 Oct 2016 07:01:38 +0000 (17:01 +1000)
committerMario <mario@smbclan.net>
Fri, 14 Oct 2016 07:01:38 +0000 (17:01 +1000)
plugins/md3model/model.h
plugins/model/model.cpp
radiant/patch.h
radiant/selection.cpp
radiant/view.h

index ee76006494978a9b94b6d24376619ba0820fe527..2ed094e1959c7755c5331b515e7b5c9a50c50755 100644 (file)
@@ -180,7 +180,7 @@ void render( RenderStateFlags state ) const {
        glEnd();
 #endif
 
-#if defined( _DEBUG )
+#if 0
        glBegin( GL_LINES );
 
        for ( VertexBuffer<ArbitraryMeshVertex>::const_iterator i = m_vertices.begin(); i != m_vertices.end(); ++i )
index defa472aa0fd56503aea26bb1216fab8044062be..b8df1740b72c55797db8e2b9f82b3f263068b0a8 100644 (file)
@@ -113,7 +113,7 @@ void render( RenderStateFlags state ) const {
        glVertexPointer( 3, GL_FLOAT, sizeof( ArbitraryMeshVertex ), &m_vertices.data()->vertex );
        glDrawElements( GL_TRIANGLES, GLsizei( m_indices.size() ), RenderIndexTypeID, m_indices.data() );
 
-#if defined( _DEBUG )
+#if 0
        GLfloat modelview[16];
        glGetFloatv( GL_MODELVIEW_MATRIX, modelview ); // I know this is slow as hell, but hey - we're in _DEBUG
        Matrix4 modelview_inv(
index a1f1d272a20a682bb987337d12f8f481925d787b..d122451fd4fae80bac93e980a81224d3278c9506 100644 (file)
@@ -317,7 +317,7 @@ void render( RenderStateFlags state ) const {
                }
        }
 
-#if defined( _DEBUG )
+#if 0
        RenderNormals();
 #endif
 }
index 5013af7ba466d3b66840e10fbcb02cd6b54df667..50da13107151b86a4f6dc7c4711c5105e3aefa9f 100644 (file)
@@ -156,7 +156,7 @@ inline float angle_between( const Vector3& a, const Vector3& b ){
 }
 
 
-#if defined( _DEBUG )
+#if 0
 class test_quat
 {
 public:
@@ -463,7 +463,7 @@ void add_one(){
 }
 };
 
-#if defined( _DEBUG )
+#if 0
 #define DEBUG_SELECTION
 #endif
 
index 7e8cdf957bfe69ceb89f934b48b3604e39b2c977..5fd1a6e967e2be23ad48bc8928ea99ed49a1da38 100644 (file)
@@ -26,7 +26,7 @@
 #include "math/frustum.h"
 
 
-#if defined( _DEBUG )
+#if 0
 #define DEBUG_CULLING
 #endif