mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
Merge branch 'Mario/debug_slowdown' into Mario/combined_fixes
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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(
|
||||
|
||||
+1
-1
@@ -317,7 +317,7 @@ void render( RenderStateFlags state ) const {
|
||||
}
|
||||
}
|
||||
|
||||
#if defined( _DEBUG )
|
||||
#if 0
|
||||
RenderNormals();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
#include "math/frustum.h"
|
||||
|
||||
|
||||
#if defined( _DEBUG )
|
||||
#if 0
|
||||
#define DEBUG_CULLING
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user