protected override void PostRender()
 {
     if (!hasBackBuffer)
     {
         Logger.Log(HelixToolkit.Logger.LogLevel.Warning, $"Back buffer is not set.");
         return;
     }
     surfaceD3D?.InvalidateD3DImage();
     base.PostRender();
 }
 protected override void PostRender()
 {
     if (!hasBackBuffer)
     {
         logger.LogWarning("Back buffer is not set.");
         return;
     }
     surfaceD3D?.InvalidateD3DImage();
     base.PostRender();
 }
 protected override void PostRender()
 {
     surfaceD3D?.InvalidateD3DImage();
     base.PostRender();
 }