Skip to content

Commit

Permalink
If no options are supplied to graphicToTexture, make an empty object.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Clark committed Sep 24, 2024
1 parent b6aa505 commit 6c8992e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/pixi/PixiTextures.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ export class PixiTextures {
*/
_graphicToTexture(textureID, graphic, options) {
// v8

if (!options) {
options = {};
}

options.antialias = false;
options.target = graphic;
const renderer = this.context.pixi.renderer;
Expand Down

0 comments on commit 6c8992e

Please sign in to comment.