mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 02:08:31 +12:00
Correct UV pointer offset
This commit is contained in:
parent
457672accf
commit
4d59741b25
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue