Skip to content

Commit

Permalink
WebGLRenderer: Added note about workaround in copyFramebufferToTexture()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 16, 2021
1 parent 77a7ffb commit a816aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,7 @@ function WebGLRenderer( parameters = {} ) {
if ( capabilities.isWebGL2 ) {

// Workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=1120100
// Not needed in Chrome 93+

if ( glFormat === _gl.RGB ) glFormat = _gl.RGB8;
if ( glFormat === _gl.RGBA ) glFormat = _gl.RGBA8;
Expand Down

0 comments on commit a816aaf

Please sign in to comment.