1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix incorrect width used for sync color buffer reads with EGLImage

This commit is contained in:
fzurita 2021-01-17 16:19:36 -05:00 committed by Sergey Lipskiy
parent eb8ac40136
commit 8b75b5dc96

View File

@ -58,7 +58,7 @@ const u8 * ColorBufferReaderWithEGLImage::_readPixels(const ReadColorBufferParam
_stride = m_pTexture->width;
} else {
gpuData = m_pixelData.data();
glReadPixels(_params.x0, _params.y0, _params.width, _params.height, format, type, gpuData);
glReadPixels(_params.x0, _params.y0, m_pTexture->width, _params.height, format, type, gpuData);
_heightOffset = 0;
_stride = m_pTexture->width;
}