From eafce294295a2504e713ad85f6c176b4e414a2dc Mon Sep 17 00:00:00 2001 From: Mr F Date: Tue, 15 Aug 2017 12:12:04 +0300 Subject: [PATCH] fix browser color-correcting images --- src/graphics/device.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/device.js b/src/graphics/device.js index afcfa289377..ede7138f5fa 100644 --- a/src/graphics/device.js +++ b/src/graphics/device.js @@ -716,6 +716,8 @@ pc.extend(pc, function () { this.constantTexSource = this.scope.resolve("source"); + gl.pixelStorei(gl.UNPACK_COLORSPACE_CONVERSION_WEBGL, gl.NONE); + if (!pc._benchmarked) { if (this.extTextureFloat) { if (this.webgl2) {