Skip to content

Fix setSmoothPixelArt call#7319

Open
scobo wants to merge 1 commit into
phaserjs:masterfrom
scobo:smooth-pixel-art
Open

Fix setSmoothPixelArt call#7319
scobo wants to merge 1 commit into
phaserjs:masterfrom
scobo:smooth-pixel-art

Conversation

@scobo

@scobo scobo commented Jun 19, 2026

Copy link
Copy Markdown

This PR

  • Fixes a bug

Describe the changes below:

Fixes a runtime issue when attempting to use setSmoothPixelArt:

Uncaught ReferenceError: Phaser is not defined

The setSmoothPixelArt method calls this.setFilter(Phaser.Textures.FilterMode.LINEAR) but Phaser is no longer global in Phaser 4. This PR imports the FilterMode constant instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant