Clarify the error message when the device does not support webGL2 (#14951)

Clarify the error message when the device does not support webGL2,avoid confusion with the webGL error message.
This commit is contained in:
tjunxin
2023-05-15 12:05:04 +08:00
committed by GitHub
parent 3bf3b624d6
commit ca877208cb
+1 -1
View File
@@ -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;
}