File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -2395,13 +2395,6 @@ class WebGLRenderer {
2395
2395
2396
2396
} ;
2397
2397
2398
- this . resetColorManagement = function ( ) {
2399
-
2400
- _gl . drawingBufferColorSpace = this . _outputColorSpace === DisplayP3ColorSpace ? 'display-p3' : 'srgb' ;
2401
- _gl . unpackColorSpace = ColorManagement . workingColorSpace === LinearDisplayP3ColorSpace ? 'display-p3' : 'srgb' ;
2402
-
2403
- } ;
2404
-
2405
2398
this . resetState = function ( ) {
2406
2399
2407
2400
_currentActiveCubeFace = 0 ;
@@ -2437,7 +2430,9 @@ class WebGLRenderer {
2437
2430
2438
2431
this . _outputColorSpace = colorSpace ;
2439
2432
2440
- this . resetColorManagement ( ) ;
2433
+ const gl = this . getContext ( ) ;
2434
+ gl . drawingBufferColorSpace = colorSpace === DisplayP3ColorSpace ? 'display-p3' : 'srgb' ;
2435
+ gl . unpackColorSpace = ColorManagement . workingColorSpace === LinearDisplayP3ColorSpace ? 'display-p3' : 'srgb' ;
2441
2436
2442
2437
}
2443
2438
You can’t perform that action at this time.
0 commit comments