summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorraven02 <jacky.kktsui@yahoo.com.hk>2018-09-30 04:35:48 +0200
committerraven02 <jacky.kktsui@yahoo.com.hk>2018-09-30 17:51:10 +0200
commitb92b4bbeaf4de0200044c7fb24875b2b91d508c9 (patch)
treeec6d37530271d1058c3870268a2311985f415e6f /src
parentMerge branch 'master' into tlds (diff)
downloadyuzu-b92b4bbeaf4de0200044c7fb24875b2b91d508c9.tar
yuzu-b92b4bbeaf4de0200044c7fb24875b2b91d508c9.tar.gz
yuzu-b92b4bbeaf4de0200044c7fb24875b2b91d508c9.tar.bz2
yuzu-b92b4bbeaf4de0200044c7fb24875b2b91d508c9.tar.lz
yuzu-b92b4bbeaf4de0200044c7fb24875b2b91d508c9.tar.xz
yuzu-b92b4bbeaf4de0200044c7fb24875b2b91d508c9.tar.zst
yuzu-b92b4bbeaf4de0200044c7fb24875b2b91d508c9.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 00cd05e62..702ffbe9c 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -2021,7 +2021,10 @@ private:
std::string coord;
const Tegra::Shader::TextureType texture_type{instr.tlds.GetTextureType()};
const bool is_array{instr.tlds.IsArrayTexture()};
-
+
+ ASSERT(texture_type == Tegra::Shader::TextureType::Texture2D);
+ ASSERT(is_array == false);
+
ASSERT_MSG(!instr.tlds.UsesMiscMode(Tegra::Shader::TextureMiscMode::NODEP),
"NODEP is not implemented");
ASSERT_MSG(!instr.tlds.UsesMiscMode(Tegra::Shader::TextureMiscMode::AOFFI),