We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73534c commit 935bf4aCopy full SHA for 935bf4a
1 file changed
Polyfills/Canvas/Source/Context.cpp
@@ -623,6 +623,11 @@ namespace Babylon::Polyfills::Internal
623
return;
624
}
625
626
+ // Discard any residual encoder state from NativeEngine rendering.
627
+ // In the old model Canvas had its own per-thread encoder with clean state;
628
+ // now it shares the frame encoder with NativeEngine.
629
+ encoder->discard(BGFX_DISCARD_ALL);
630
+
631
bool needClear = m_canvas->UpdateRenderTarget();
632
633
Graphics::FrameBuffer& frameBuffer = m_canvas->GetFrameBuffer();
0 commit comments