diff --git a/src/ext/lib/angle-detect/detect-angle-backend.ts b/src/ext/lib/angle-detect/detect-angle-backend.ts index 08db21a..928e4a2 100644 --- a/src/ext/lib/angle-detect/detect-angle-backend.ts +++ b/src/ext/lib/angle-detect/detect-angle-backend.ts @@ -112,7 +112,8 @@ function detectANGLEBackend(): AngleVersion { (gl as any).compileShader(shader); if (!(gl as any).getShaderParameter(shader, (gl as any).COMPILE_STATUS)) { - return console.error("invalid shader", (gl as any).getShaderInfoLog(shader)); + console.error("invalid shader", (gl as any).getShaderInfoLog(shader)); + return AngleVersion.NotAvailable; } const source = ext.getTranslatedShaderSource(shader);