fix ANGLE

This commit is contained in:
Tamius Han 2023-01-23 00:15:21 +01:00
parent 38dd1ddbe8
commit c7f24133e5

View File

@ -112,7 +112,8 @@ function detectANGLEBackend(): AngleVersion {
(gl as any).compileShader(shader); (gl as any).compileShader(shader);
if (!(gl as any).getShaderParameter(shader, (gl as any).COMPILE_STATUS)) { 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); const source = ext.getTranslatedShaderSource(shader);