mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 17:44:41 -06:00
Correct UV pointer offset
This commit is contained in:
parent
457672accf
commit
4d59741b25
@ -51,7 +51,7 @@ void Rgb2Nv12(const uint8* rgbImage,
|
||||
unsigned nv12Pitch)
|
||||
{
|
||||
cemu_assert_debug(!((imageWidth | imageHeight) & 1));
|
||||
unsigned char* UV = outNv12Image + imageWidth * imageHeight;
|
||||
unsigned char* UV = outNv12Image + nv12Pitch * imageHeight;
|
||||
|
||||
for (auto row = 0u; row < imageHeight; row += 2)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user