mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user