From f23ecb6c3fc595fa27e8143ea7f2e4f3efb8bc4f Mon Sep 17 00:00:00 2001 From: player-03 Date: Fri, 31 May 2024 21:43:37 -0400 Subject: [PATCH] Add `preserveDrawingBuffer` context attribute. --- src/lime/graphics/RenderContextAttributes.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lime/graphics/RenderContextAttributes.hx b/src/lime/graphics/RenderContextAttributes.hx index 1e507da80..059e0a489 100644 --- a/src/lime/graphics/RenderContextAttributes.hx +++ b/src/lime/graphics/RenderContextAttributes.hx @@ -32,6 +32,13 @@ typedef RenderContextAttributes = **/ @:optional var hardware:Bool; + #if html5 + /** + Whether to preserve the `HTMLCanvas`'s image data after rendering + **/ + @:optional var preserveDrawingBuffer:Bool; + #end + /** Whether a stencil buffer is enabled **/