Merge pull request #1770 from barisyild/make-preserveDrawingBuffer-configurable

make preserveDrawingBuffer configurable
This commit is contained in:
player-03
2024-05-31 17:54:20 -04:00
committed by GitHub

View File

@@ -328,7 +328,7 @@ class HTML5Window
depth: Reflect.hasField(contextAttributes, "depth") ? contextAttributes.depth : true,
premultipliedAlpha: true,
stencil: Reflect.hasField(contextAttributes, "stencil") ? contextAttributes.stencil : false,
preserveDrawingBuffer: false,
preserveDrawingBuffer: Reflect.hasField(contextAttributes, "preserveDrawingBuffer") ? contextAttributes.preserveDrawingBuffer : false,
failIfMajorPerformanceCaveat: false
};