Skip to content

Commit e3039ff

Browse files
committed
Added antialiasGL option
1 parent 24f0187 commit e3039ff

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## Version 3.20.0 - Fitoria - in dev
4+
5+
### New Features
6+
7+
* `GameConfig.antialiasGL` is a new boolean that allows you to set the `antialias` property of the WebGL context during creation, without impacting any subsequent textures or the canvas CSS.
8+
39
## Version 3.19.0 - Naofumi - 8th August 2019
410

511
### Tween Updates

src/core/Config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ var Config = new Class({
337337
*/
338338
this.antialias = GetValue(renderConfig, 'antialias', true);
339339

340+
/**
341+
* @const {boolean} Phaser.Core.Config#antialiasGL - Sets the `antialias` property when the WebGL context is created. Setting this value does not impact any subsequent textures that are created, or the canvas style attributes.
342+
*/
343+
this.antialiasGL = GetValue(renderConfig, 'antialiasGL', true);
344+
340345
/**
341346
* @const {boolean} Phaser.Core.Config#desynchronized - When set to `true` it will create a desynchronized context for both 2D and WebGL. See https://developers.google.com/web/updates/2019/05/desynchronized for details.
342347
*/

src/core/typedefs/RenderConfig.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/webgl/WebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var WebGLRenderer = new Class({
5959
alpha: gameConfig.transparent,
6060
desynchronized: gameConfig.desynchronized,
6161
depth: false,
62-
antialias: gameConfig.antialias,
62+
antialias: gameConfig.antialiasGL,
6363
premultipliedAlpha: gameConfig.premultipliedAlpha,
6464
stencil: true,
6565
failIfMajorPerformanceCaveat: gameConfig.failIfMajorPerformanceCaveat,

0 commit comments

Comments
 (0)