summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-11-25 00:01:57 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2018-11-29 01:18:14 +0100
commit653d7a3f0db44c248d0450ade1cd50aaa94bd4d6 (patch)
tree4ef7ed51e49cd28db685c23d223a6171683d8fbf /src/video_core/renderer_opengl
parentgl_rasterizer: Remove unused struct declarations (diff)
downloadyuzu-653d7a3f0db44c248d0450ade1cd50aaa94bd4d6.tar
yuzu-653d7a3f0db44c248d0450ade1cd50aaa94bd4d6.tar.gz
yuzu-653d7a3f0db44c248d0450ade1cd50aaa94bd4d6.tar.bz2
yuzu-653d7a3f0db44c248d0450ade1cd50aaa94bd4d6.tar.lz
yuzu-653d7a3f0db44c248d0450ade1cd50aaa94bd4d6.tar.xz
yuzu-653d7a3f0db44c248d0450ade1cd50aaa94bd4d6.tar.zst
yuzu-653d7a3f0db44c248d0450ade1cd50aaa94bd4d6.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index dde2f468d..95c29d06f 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -841,9 +841,10 @@ void CachedSurface::LoadGLBuffer() {
const auto texture_src_data_end{texture_src_data + params.size_in_bytes_gl};
gl_buffer[0].assign(texture_src_data, texture_src_data_end);
}
- for (u32 i = 0; i < params.max_mip_level; i++)
+ for (u32 i = 0; i < params.max_mip_level; i++) {
ConvertFormatAsNeeded_LoadGLBuffer(gl_buffer[i], params.pixel_format, params.MipWidth(i),
params.MipHeight(i), params.MipDepth(i));
+ }
}
MICROPROFILE_DEFINE(OpenGL_SurfaceFlush, "OpenGL", "Surface Flush", MP_RGB(128, 192, 64));