소스 검색

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.
Lioncash 8 년 전
부모
커밋
557c466994
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video_core/renderer_opengl/gl_rasterizer_cache.cpp

+ 1 - 1
src/video_core/renderer_opengl/gl_rasterizer_cache.cpp

@@ -447,7 +447,7 @@ MICROPROFILE_DEFINE(OpenGL_SurfaceLoad, "OpenGL", "Surface Load", MP_RGB(128, 64
 void CachedSurface::LoadGLBuffer() {
     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);