mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 09:12:46 +01:00
gl_rasterizer_cache: Use brackets for two-line single-expresion blocks
This commit is contained in:
parent
432a9872ed
commit
653d7a3f0d
1 changed files with 2 additions and 1 deletions
|
@ -841,9 +841,10 @@ void CachedSurface::LoadGLBuffer() {
|
||||||
const auto texture_src_data_end{texture_src_data + params.size_in_bytes_gl};
|
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);
|
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),
|
ConvertFormatAsNeeded_LoadGLBuffer(gl_buffer[i], params.pixel_format, params.MipWidth(i),
|
||||||
params.MipHeight(i), params.MipDepth(i));
|
params.MipHeight(i), params.MipDepth(i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MICROPROFILE_DEFINE(OpenGL_SurfaceFlush, "OpenGL", "Surface Flush", MP_RGB(128, 192, 64));
|
MICROPROFILE_DEFINE(OpenGL_SurfaceFlush, "OpenGL", "Surface Flush", MP_RGB(128, 192, 64));
|
||||||
|
|
Loading…
Reference in a new issue