From f56adc9ce6dbdaa3bf229fa61b0575e1211fd831 Mon Sep 17 00:00:00 2001 From: myT <> Date: Tue, 1 Oct 2024 19:02:13 +0200 Subject: [PATCH] fixed the Im3d NewFrame / EndFrame mismatch --- code/renderer/srp_im3d.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/renderer/srp_im3d.cpp b/code/renderer/srp_im3d.cpp index 24d7c03..56bc725 100644 --- a/code/renderer/srp_im3d.cpp +++ b/code/renderer/srp_im3d.cpp @@ -222,6 +222,11 @@ void Im3D::BeginFrame() void Im3D::Draw(const drawSceneViewCommand_t& cmd, HTexture colorTarget, HTexture depthTarget) { + if(cmd.viewParms.isPortal || !IsViewportFullscreen(cmd.viewParms)) + { + return; + } + #if 0 // cpm3 test/demo code { static Im3d::Vec3 translation(700, 50, -50);