summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-02-29 08:05:19 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-09 22:40:07 +0100
commite1932351a9589150e0db884e8682b9183a2ba17b (patch)
treee6f4a599815a250e9f941205355f9715bfa3d585
parentshader/registry: Cache tessellation state (diff)
downloadyuzu-e1932351a9589150e0db884e8682b9183a2ba17b.tar
yuzu-e1932351a9589150e0db884e8682b9183a2ba17b.tar.gz
yuzu-e1932351a9589150e0db884e8682b9183a2ba17b.tar.bz2
yuzu-e1932351a9589150e0db884e8682b9183a2ba17b.tar.lz
yuzu-e1932351a9589150e0db884e8682b9183a2ba17b.tar.xz
yuzu-e1932351a9589150e0db884e8682b9183a2ba17b.tar.zst
yuzu-e1932351a9589150e0db884e8682b9183a2ba17b.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index 72a5dc82a..593897787 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -221,9 +221,7 @@ CachedShader::CachedShader(const u8* host_ptr, VAddr cpu_addr, std::size_t size_
CachedShader::~CachedShader() = default;
GLuint CachedShader::GetHandle() const {
- if (!registry->IsConsistent()) {
- std::abort();
- }
+ DEBUG_ASSERT(registry->IsConsistent());
return program->handle;
}