Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## Unreleased

### New Features

- The game config now has an `antialiasGL` option for the WebGL context's `antialias` attribute, separate from texture smoothing.

### Thanks

@asger-finding

## Version 2.21.0 - 23 October 2026

### New Features
Expand Down
1 change: 1 addition & 0 deletions src/core/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
* @property {boolean} [GameConfig.alignH=false] - Sets {@link Phaser.ScaleManager#pageAlignHorizontally}.
* @property {boolean} [GameConfig.alignV=false] - Sets {@link Phaser.ScaleManager#pageAlignVertically}.
* @property {boolean} [GameConfig.antialias=true]
* @property {boolean} [GameConfig.antialiasGL] - Sets the WebGL context's `antialias` attribute separately from texture smoothing. Defaults to `antialias`.
* @property {number|string} [GameConfig.backgroundColor=0] - Sets {@link Phaser.Stage#backgroundColor}.
* @property {HTMLCanvasElement} [GameConfig.canvas] - An existing canvas to display the game in.
* @property {string} [GameConfig.canvasID] - `id` attribute value to assign to the game canvas.
Expand Down
2 changes: 1 addition & 1 deletion src/pixi/renderers/webgl/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ PIXI.WebGLRenderer = function (game, config)
*/
this._contextOptions = {
alpha: this.transparent,
antialias: game.antialias,
antialias: (config.antialiasGL === undefined) ? game.antialias : config.antialiasGL,
failIfMajorPerformanceCaveat: config.failIfMajorPerformanceCaveat,
premultipliedAlpha: this.transparent && this.transparent !== 'notMultiplied',
stencil: true,
Expand Down
1 change: 1 addition & 0 deletions typescript/phaser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,7 @@ declare module Phaser {
alignH?: boolean;
alignV?: boolean;
antialias?: boolean;
antialiasGL?: boolean;
backgroundColor?: number | string;
canvas?: HTMLCanvasElement;
canvasId?: string;
Expand Down
Loading