mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 18:32:49 -06:00
LoadGLBuffer: Use bytes_per_pixel, not bits.
This commit is contained in:
parent
63d3924b5b
commit
f61b9f7338
1 changed files with 2 additions and 1 deletions
|
@ -546,7 +546,8 @@ void CachedSurface::LoadGLBuffer(VAddr load_start, VAddr load_end) {
|
||||||
|
|
||||||
if (!is_tiled) {
|
if (!is_tiled) {
|
||||||
ASSERT(type == SurfaceType::Color);
|
ASSERT(type == SurfaceType::Color);
|
||||||
VideoCore::MortonCopyPixels128(width, height, GetFormatBpp(), 4,
|
const u32 bytes_per_pixel{GetFormatBpp() >> 3};
|
||||||
|
VideoCore::MortonCopyPixels128(width, height, bytes_per_pixel, 4,
|
||||||
texture_src_data + start_offset, &gl_buffer[start_offset],
|
texture_src_data + start_offset, &gl_buffer[start_offset],
|
||||||
true);
|
true);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue