Browse Source
Merge pull request #2399 from FernandoS27/fermi-fix
Correct Pitch in Fermi2D
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
|
|
|
@ -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; |
|
|
|
|