From 6109935b731723012ecd9fde6fcfcde090a521da Mon Sep 17 00:00:00 2001 From: GPUCode <47210458+GPUCode@users.noreply.github.com> Date: Mon, 22 Aug 2022 11:11:28 +0300 Subject: [PATCH] gl_rasterizer: BindCubeFace is const Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com> --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 03f4ac559..8f00abc66 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -630,7 +630,7 @@ bool RasterizerOpenGL::Draw(bool accelerate, bool is_indexed) { } }; - auto BindCubeFace = [&](GLuint& target, Pica::TexturingRegs::CubeFace face, + const auto BindCubeFace = [&](GLuint& target, Pica::TexturingRegs::CubeFace face, Pica::Texture::TextureInfo& info) { info.physical_address = regs.texturing.GetCubePhysicalAddress(face); Surface surface = res_cache.GetTextureSurface(info);