fixed the Im3d NewFrame / EndFrame mismatch

This commit is contained in:
myT 2024-10-01 19:02:13 +02:00
parent 492427df2e
commit f56adc9ce6

View file

@ -222,6 +222,11 @@ void Im3D::BeginFrame()
void Im3D::Draw(const drawSceneViewCommand_t& cmd, HTexture colorTarget, HTexture depthTarget) 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 #if 0 // cpm3 test/demo code
{ {
static Im3d::Vec3 translation(700, 50, -50); static Im3d::Vec3 translation(700, 50, -50);