Bug 1505871. Fix comment to not trigger angle_shader_validation.rs.

angle_shader_validation.rs just checks that the number of "switch" and "default:" are the same number in the source file, even if they occur in comments.
This commit is contained in:
Timothy Nikkel 2019-02-26 00:16:37 -06:00
Родитель 78f0cf02be
Коммит 3bf7ef2abf
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -71,6 +71,8 @@ void brush_vs(
// below because it doesn't get executed on Windows because of a suspected
// miscompile of this shader on Windows. See
// https://github.com/servo/webrender/wiki/Driver-issues#bug-1505871---assignment-to-varying-flat-arrays-inside-switch-statement-of-vertex-shader-suspected-miscompile-on-windows
// default: just to satisfy angle_shader_validation.rs which needs one
// default: for every switch, even in comments.
vFuncs[0] = (user_data.y >> 28) & 0xf; // R
vFuncs[1] = (user_data.y >> 24) & 0xf; // G
vFuncs[2] = (user_data.y >> 20) & 0xf; // B