diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-09 22:02:59 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-14 16:01:39 -0400 |
commit | a992aac5eb92479f8c23e746c298e4ddc3765594 (patch) | |
tree | cca10023f958bad171fa7391e559e2c8b98539cc /src/video_core/utils.h | |
parent | 0ca8fce9d0a073ee07818691cbc6534e9af5fc7a (diff) |
renderer_opengl: Fix Morton copy byteswap, etc.
Diffstat (limited to 'src/video_core/utils.h')
-rw-r--r-- | src/video_core/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/utils.h b/src/video_core/utils.h index be0f7e22b..e0a14d48f 100644 --- a/src/video_core/utils.h +++ b/src/video_core/utils.h @@ -151,7 +151,7 @@ static inline void MortonCopyPixels128(u32 width, u32 height, u32 bytes_per_pixe const u32 coarse_y = y & ~127; u32 morton_offset = GetMortonOffset128(x, y, bytes_per_pixel) + coarse_y * width * bytes_per_pixel; - u32 gl_pixel_index = (x + (height - 1 - y) * width) * gl_bytes_per_pixel; + u32 gl_pixel_index = (x + y * width) * gl_bytes_per_pixel; data_ptrs[morton_to_gl] = morton_data + morton_offset; data_ptrs[!morton_to_gl] = &gl_data[gl_pixel_index]; |