mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	gl_rasterizer_cache: Make pointer const in LoadGLBuffer()
This is only ever read from, so we can make the data it's pointing to const.
This commit is contained in:
		
							parent
							
								
									25ba4d1b68
								
							
						
					
					
						commit
						557c466994
					
				| @ -447,7 +447,7 @@ MICROPROFILE_DEFINE(OpenGL_SurfaceLoad, "OpenGL", "Surface Load", MP_RGB(128, 64 | |||||||
| void CachedSurface::LoadGLBuffer() { | void CachedSurface::LoadGLBuffer() { | ||||||
|     ASSERT(params.type != SurfaceType::Fill); |     ASSERT(params.type != SurfaceType::Fill); | ||||||
| 
 | 
 | ||||||
|     u8* const texture_src_data = Memory::GetPointer(params.GetCpuAddr()); |     const u8* const texture_src_data = Memory::GetPointer(params.GetCpuAddr()); | ||||||
| 
 | 
 | ||||||
|     ASSERT(texture_src_data); |     ASSERT(texture_src_data); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Lioncash
						Lioncash