@@ -50,6 +50,8 @@ void Renderer::Dbg::init()
//=====================================================================================================================================
void Renderer::Dbg::run()
{
+ if( !enabled ) return;
+
const Camera& cam = *r.cam;
fbo.bind();
@@ -17,12 +17,12 @@ float Renderer::quadVertCoords [][2] = { {1.0,1.0}, {0.0,1.0}, {0.0,0.0}, {1.0,0
// Constructor =
Renderer::Renderer():
+ width( 640 ),
+ height( 480 ),
ms( *this ),
is( *this ),
pps( *this ),
- dbg( *this ),
- width( 640 ),
- height( 480 )
+ dbg( *this )
}