diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 7a3280620..8c4d0af46 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |||
| @@ -265,6 +265,10 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, | |||
| 265 | params.component_type = ComponentTypeFromRenderTarget(config.format); | 265 | params.component_type = ComponentTypeFromRenderTarget(config.format); |
| 266 | params.type = GetFormatType(params.pixel_format); | 266 | params.type = GetFormatType(params.pixel_format); |
| 267 | params.width = config.width; | 267 | params.width = config.width; |
| 268 | if (!params.is_tiled) { | ||
| 269 | const u32 bpp = params.GetFormatBpp() / 8; | ||
| 270 | params.pitch = config.width * bpp; | ||
| 271 | } | ||
| 268 | params.height = config.height; | 272 | params.height = config.height; |
| 269 | params.unaligned_height = config.height; | 273 | params.unaligned_height = config.height; |
| 270 | params.target = SurfaceTarget::Texture2D; | 274 | params.target = SurfaceTarget::Texture2D; |