mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06: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:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user