Skip to content

Commit 5897fd3

Browse files
authored
check _flipFaces on camera not camera component (playcanvas#3352)
1 parent b6f5a83 commit 5897fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scene/renderer/forward-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ class ForwardRenderer {
22992299

23002300
// enable flip faces if either the camera has _flipFaces enabled or the render target
23012301
// has flipY enabled
2302-
const flipFaces = !!(camera._flipFaces ^ renderAction?.renderTarget?.flipY);
2302+
const flipFaces = !!(camera.camera._flipFaces ^ renderAction?.renderTarget?.flipY);
23032303

23042304
const draws = this._forwardDrawCalls;
23052305
this.renderForward(camera.camera,

0 commit comments

Comments
 (0)