Skip to content

Commit 89659c9

Browse files
authored
[Fix] when no projection is set for 2d texture, equirect is assumed (playcanvas#2903)
* [Fix] when no projection is set for 2d texture, equirect is assumed * fix
1 parent bcfa249 commit 89659c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphics/texture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class Texture {
185185

186186
if (this._cubemap) {
187187
this.projection = TEXTUREPROJECTION_CUBE;
188-
} else if (options.projection !== TEXTUREPROJECTION_CUBE) {
188+
} else if (options.projection && options.projection !== TEXTUREPROJECTION_CUBE) {
189189
this.projection = options.projection;
190190
}
191191

0 commit comments

Comments
 (0)