mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-12 10:12:54 +01:00
LoadGLBuffer: Use bytes_per_pixel, not bits.
This commit is contained in:
1 parent
c9c232727c
commit
95dec6140b
1 file changed
+2
-1
@@ -546,7 +546,8 @@ void CachedSurface::LoadGLBuffer(VAddr load_start, VAddr load_end) {
|
||||
|
||||
if (!is_tiled) {
|
||||
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],
|
||||
true);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user