Merge pull request #1770 from barisyild/make-preserveDrawingBuffer-configurable
make preserveDrawingBuffer configurable
This commit is contained in:
@@ -328,7 +328,7 @@ class HTML5Window
|
|||||||
depth: Reflect.hasField(contextAttributes, "depth") ? contextAttributes.depth : true,
|
depth: Reflect.hasField(contextAttributes, "depth") ? contextAttributes.depth : true,
|
||||||
premultipliedAlpha: true,
|
premultipliedAlpha: true,
|
||||||
stencil: Reflect.hasField(contextAttributes, "stencil") ? contextAttributes.stencil : false,
|
stencil: Reflect.hasField(contextAttributes, "stencil") ? contextAttributes.stencil : false,
|
||||||
preserveDrawingBuffer: false,
|
preserveDrawingBuffer: Reflect.hasField(contextAttributes, "preserveDrawingBuffer") ? contextAttributes.preserveDrawingBuffer : false,
|
||||||
failIfMajorPerformanceCaveat: false
|
failIfMajorPerformanceCaveat: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user