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);