Skip to content
Merged
1 change: 1 addition & 0 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ list(APPEND CLDLL_SOURCES
"postfx_parameters.cpp"
"client_weapon_layer_impl.cpp"
"weapon_predicting_context.cpp"
"visualizer/debug_visualizer.cpp"
)

# shared source files
Expand Down
2 changes: 2 additions & 0 deletions client/cdll_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "pm_shared.h"
#include "filesystem_utils.h"
#include "build_info.h"
#include "visualizer/debug_visualizer.h"
#include <memory>

int developer_level;
Expand Down Expand Up @@ -331,6 +332,7 @@ extern "C" void DLLEXPORT HUD_Frame( double time )
{
// run anti (_-=ZhekA=-_) system for Xash3D engine
gEngfuncs.VGui_ViewportPaintBackground( VGUI_GetRect( ));
CDebugVisualizer::GetInstance().RunFrame();
}

extern "C" int DLLEXPORT HUD_Key_Event( int down, int keynum, const char *pszCurrentBinding )
Expand Down
4 changes: 4 additions & 0 deletions client/render/gl_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ GNU General Public License for more details.
#include "gl_shader.h"
#include "gl_cvars.h"
#include "gl_debug.h"
#include "gl_debug_visualizer_backend.h"
#include "imgui_manager.h"
#include "screenfade.h"
#include "shake.h"
Expand Down Expand Up @@ -463,6 +464,9 @@ void GL_BackendEndFrame( ref_viewpass_t *rvp, RefParams params )

DBG_DrawLightFrustum(); // 3D

if( RP_NORMALPASS( ))
CDebugVisualizerBackend::GetInstance().DrawFrame();

R_PushRefState();
RI->params = params;
RI->view.fov_x = rvp->fov_x;
Expand Down
Loading
Loading