Added preserveDrawingBuffer config

This commit is contained in:
Richard Davey 2017-02-13 12:08:30 +00:00
parent 2a320e171c
commit a9f674bc92

View file

@ -60,6 +60,7 @@ var Config = function (config)
this.transparent = GetObjectValue(config, 'transparent', false);
this.clearBeforeRender = GetObjectValue(config, 'clearBeforeRender', true);
this.backgroundColor = ValueToColor(GetObjectValue(config, 'backgroundColor', 0));
this.preserveDrawingBuffer = ValueToColor(GetObjectValue(config, 'preserveDrawingBuffer', false));
// Callbacks
this.preBoot = GetObjectValue(config, 'callbacks.preBoot', NOOP);