Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
be6844c1ed
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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;
                 }
             }