mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 23:49:57 +00:00
gl_shader_cache: Reduce registry consistency to debug assert
Registry consistency is something that practically can't happen and it has a measurable runtime cost. Reduce it to a DEBUG_ASSERT.
This commit is contained in:
parent
66a8a3e887
commit
e1932351a9
1 changed files with 1 additions and 3 deletions
|
@ -221,9 +221,7 @@ CachedShader::CachedShader(const u8* host_ptr, VAddr cpu_addr, std::size_t size_
|
||||||
CachedShader::~CachedShader() = default;
|
CachedShader::~CachedShader() = default;
|
||||||
|
|
||||||
GLuint CachedShader::GetHandle() const {
|
GLuint CachedShader::GetHandle() const {
|
||||||
if (!registry->IsConsistent()) {
|
DEBUG_ASSERT(registry->IsConsistent());
|
||||||
std::abort();
|
|
||||||
}
|
|
||||||
return program->handle;
|
return program->handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue