mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 16:52:46 +01:00
Correct Pitch in Fermi2D
This commit is contained in:
parent
1f4dfb3998
commit
bf561e4340
1 changed files with 1 additions and 4 deletions
|
@ -281,10 +281,7 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only,
|
|||
params.component_type = ComponentTypeFromRenderTarget(config.format);
|
||||
params.type = GetFormatType(params.pixel_format);
|
||||
params.width = config.width;
|
||||
if (!params.is_tiled) {
|
||||
const u32 bpp = params.GetFormatBpp() / 8;
|
||||
params.pitch = config.width * bpp;
|
||||
}
|
||||
params.pitch = config.pitch;
|
||||
params.height = config.height;
|
||||
params.unaligned_height = config.height;
|
||||
params.target = SurfaceTarget::Texture2D;
|
||||
|
|
Loading…
Reference in a new issue