Skip to content

Commit

Permalink
Remove renderer.resetColorManangement()
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Sep 7, 2023
1 parent bb5b1f3 commit b313f11
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2395,13 +2395,6 @@ class WebGLRenderer {

};

this.resetColorManagement = function () {

_gl.drawingBufferColorSpace = this._outputColorSpace === DisplayP3ColorSpace ? 'display-p3' : 'srgb';
_gl.unpackColorSpace = ColorManagement.workingColorSpace === LinearDisplayP3ColorSpace ? 'display-p3' : 'srgb';

};

this.resetState = function () {

_currentActiveCubeFace = 0;
Expand Down Expand Up @@ -2437,7 +2430,9 @@ class WebGLRenderer {

this._outputColorSpace = colorSpace;

this.resetColorManagement();
const gl = this.getContext();
gl.drawingBufferColorSpace = colorSpace === DisplayP3ColorSpace ? 'display-p3' : 'srgb';
gl.unpackColorSpace = ColorManagement.workingColorSpace === LinearDisplayP3ColorSpace ? 'display-p3' : 'srgb';

}

Expand Down

0 comments on commit b313f11

Please sign in to comment.