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

decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()

The components' sizes were mismatched. This corrects that.
Lioncash 6 лет назад
Родитель
Сommit
b178c9a349
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/video_core/shader/decode/image.cpp

+ 2 - 2
src/video_core/shader/decode/image.cpp

@@ -201,10 +201,10 @@ u32 GetComponentSize(TextureFormat format, std::size_t component) {
         return 0;
         return 0;
     case TextureFormat::G24R8:
     case TextureFormat::G24R8:
         if (component == 0) {
         if (component == 0) {
-            return 8;
+            return 24;
         }
         }
         if (component == 1) {
         if (component == 1) {
-            return 24;
+            return 8;
         }
         }
         return 0;
         return 0;
     case TextureFormat::G8R8:
     case TextureFormat::G8R8: