make preserveDrawingBuffer configurable

This commit is contained in:
win11
2024-03-16 03:40:17 +03:00
parent 1c8ecd30ea
commit f59b669e46

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
};