Skip to content

Commit 40dcd39

Browse files
authored
Merge pull request #2499 from mlarghydracept/gl_texture_mixup
fix p5.Texture height-width mixup
2 parents c33059d + 88c31cc commit 40dcd39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webgl/p5.Texture.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ p5.Texture = function(renderer, obj) {
4747
this.isSrcP5Graphics = obj instanceof p5.Graphics;
4848

4949
var textureData = this._getTextureDataFromSource();
50-
this.height = textureData.width;
51-
this.width = textureData.height;
50+
this.width = textureData.width;
51+
this.height = textureData.height;
5252

5353
this.init(textureData);
5454
return this;

0 commit comments

Comments
 (0)