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

maxwell3d: Allow Texture2DNoMipmap as Texture2D.

bunnei 8 лет назад
Родитель
Сommit
4a8eb6745e
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/video_core/engines/maxwell_3d.cpp

+ 2 - 1
src/video_core/engines/maxwell_3d.cpp

@@ -223,7 +223,8 @@ Texture::TICEntry Maxwell3D::GetTICEntry(u32 tic_index) const {
     ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear,
     ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear,
                "TIC versions other than BlockLinear are unimplemented");
                "TIC versions other than BlockLinear are unimplemented");
 
 
-    ASSERT_MSG(tic_entry.texture_type == Texture::TextureType::Texture2D,
+    ASSERT_MSG((tic_entry.texture_type == Texture::TextureType::Texture2D) ||
+                   (tic_entry.texture_type == Texture::TextureType::Texture2DNoMipmap),
                "Texture types other than Texture2D are unimplemented");
                "Texture types other than Texture2D are unimplemented");
 
 
     auto r_type = tic_entry.r_type.Value();
     auto r_type = tic_entry.r_type.Value();