Просмотр исходного кода

maxwell3d: Add missing return in default SizeInBytes() case

We were returning '1' in ComponentCount()'s default case but were
neglecting to do the same with SizeInBytes().
Lioncash 5 лет назад
Родитель
Сommit
be6844c1ed
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/video_core/engines/maxwell_3d.h

+ 1 - 0
src/video_core/engines/maxwell_3d.h

@@ -242,6 +242,7 @@ public:
                     return 4;
                 default:
                     UNREACHABLE();
+                    return 1;
                 }
             }