mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 20:36:24 -05:00
gl_rasterizer_chache: Minor cleanup
This commit is contained in:
parent
8a537a2021
commit
3844b5c0c5
1 changed files with 3 additions and 3 deletions
|
@ -550,8 +550,8 @@ void SwizzleFunc(const GLConversionArray& functions, const SurfaceParams& params
|
||||||
if (params.is_layered) {
|
if (params.is_layered) {
|
||||||
u64 offset = params.GetMipmapLevelOffset(mip_level);
|
u64 offset = params.GetMipmapLevelOffset(mip_level);
|
||||||
u64 offset_gl = 0;
|
u64 offset_gl = 0;
|
||||||
u64 layer_size = params.LayerMemorySize();
|
const u64 layer_size = params.LayerMemorySize();
|
||||||
u64 gl_size = params.LayerSizeGL(mip_level);
|
const u64 gl_size = params.LayerSizeGL(mip_level);
|
||||||
for (u32 i = 0; i < params.depth; i++) {
|
for (u32 i = 0; i < params.depth; i++) {
|
||||||
functions[static_cast<std::size_t>(params.pixel_format)](
|
functions[static_cast<std::size_t>(params.pixel_format)](
|
||||||
params.MipWidth(mip_level), params.MipBlockHeight(mip_level),
|
params.MipWidth(mip_level), params.MipBlockHeight(mip_level),
|
||||||
|
@ -561,7 +561,7 @@ void SwizzleFunc(const GLConversionArray& functions, const SurfaceParams& params
|
||||||
offset_gl += gl_size;
|
offset_gl += gl_size;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
u64 offset = params.GetMipmapLevelOffset(mip_level);
|
const u64 offset = params.GetMipmapLevelOffset(mip_level);
|
||||||
functions[static_cast<std::size_t>(params.pixel_format)](
|
functions[static_cast<std::size_t>(params.pixel_format)](
|
||||||
params.MipWidth(mip_level), params.MipBlockHeight(mip_level),
|
params.MipWidth(mip_level), params.MipBlockHeight(mip_level),
|
||||||
params.MipHeight(mip_level), params.MipBlockDepth(mip_level), depth, gl_buffer.data(),
|
params.MipHeight(mip_level), params.MipBlockDepth(mip_level), depth, gl_buffer.data(),
|
||||||
|
|
Loading…
Reference in a new issue