From ca877208cbb496e594d1d9bb190c63c09f3cfdfd Mon Sep 17 00:00:00 2001 From: tjunxin Date: Mon, 15 May 2023 12:05:04 +0800 Subject: [PATCH] Clarify the error message when the device does not support webGL2 (#14951) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clarify the error message when the device does not support webGL2,avoid confusion with the webGL error message. --- cocos/gfx/webgl2/webgl2-device.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/gfx/webgl2/webgl2-device.ts b/cocos/gfx/webgl2/webgl2-device.ts index f5c3d3d0f9..c346230e5f 100644 --- a/cocos/gfx/webgl2/webgl2-device.ts +++ b/cocos/gfx/webgl2/webgl2-device.ts @@ -138,7 +138,7 @@ export class WebGL2Device extends Device { const gl = this._context = getContext(Device.canvas); if (!gl) { - console.error('This device does not support WebGL.'); + console.error('This device does not support WebGL2.'); return false; }