1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix return value in ColorBufferReaderWithBufferStorage::readPixels

and ColorBufferReaderWithPixelBuffer::readPixels
This commit is contained in:
Francisco Zurita 2017-01-29 22:04:45 +07:00 committed by Sergey Lipskiy
parent b5466c109d
commit 9b9910dfc1
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ u8 * ColorBufferReaderWithBufferStorage::readPixels(s32 _x0, s32 _y0, u32 _width
GLubyte* pixelData = reinterpret_cast<GLubyte*>(m_PBOData[m_curIndex]);
if (pixelData == nullptr)
return false;
return nullptr;
int widthBytes = _width * colorFormatBytes;
int strideBytes = m_pTexture->realWidth * colorFormatBytes;

View File

@ -68,7 +68,7 @@ u8 * ColorBufferReaderWithPixelBuffer::readPixels(s32 _x0, s32 _y0, u32 _width,
GLubyte* pixelData = (GLubyte*)glMapBufferRange(GL_PIXEL_PACK_BUFFER, 0, m_pTexture->realWidth * _height * colorFormatBytes, GL_MAP_READ_BIT);
if (pixelData == nullptr)
return false;
return nullptr;
int widthBytes = _width*colorFormatBytes;
int strideBytes = m_pTexture->realWidth * colorFormatBytes;