Bug 1684638 - Remove 'else' after 'return' in dom/canvas/WebGLShaderValidator.cpp. r=jgilbert

Differential Revision: https://phabricator.services.mozilla.com/D100645
This commit is contained in:
nirmay 2021-01-04 04:51:45 +00:00
parent 8dbf596048
commit f7895c0e34

View File

@ -101,7 +101,7 @@ static ShCompileOptions ChooseValidatorCompileOptions(
static ShShaderOutput ShaderOutput(gl::GLContext* gl) {
if (gl->IsGLES()) {
return SH_ESSL_OUTPUT;
} else {
}
uint32_t version = gl->ShadingLanguageVersion();
switch (version) {
case 100:
@ -134,7 +134,6 @@ static ShShaderOutput ShaderOutput(gl::GLContext* gl) {
}
gfxCriticalNote << "Unexpected GLSL version: " << version;
}
}
return SH_GLSL_COMPATIBILITY_OUTPUT;
}