mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-11-04 12:34:39 +08:00 
			
		
		
		
	gl_shader_cache: Resolve truncation compiler warning
The previous code would cause a warning, as it was truncating size_t (64-bit) to a u32 (32-bit) implicitly.
This commit is contained in:
		
							parent
							
								
									3b1043c58a
								
							
						
					
					
						commit
						861bfdbf5d
					
				@ -145,7 +145,7 @@ GLuint CachedShader::LazyGeometryProgram(OGLProgram& target_program,
 | 
			
		||||
    return target_program.handle;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static bool IsSchedInstruction(u32 offset, u32 main_offset) {
 | 
			
		||||
static bool IsSchedInstruction(std::size_t offset, std::size_t main_offset) {
 | 
			
		||||
    // sched instructions appear once every 4 instructions.
 | 
			
		||||
    static constexpr std::size_t SchedPeriod = 4;
 | 
			
		||||
    const std::size_t absolute_offset = offset - main_offset;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user