qt: fix build error

This commit is contained in:
ts-korhonen
2022-02-28 22:29:06 +02:00
parent 7af0069693
commit 16e98249c1

View File

@@ -376,7 +376,7 @@ OpenGLRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
}
if (!hasBufferStorage)
glBufferSubData(GL_PIXEL_UNPACK_BUFFER, BUFFERBYTES * buf_idx, h * ROW_LENGTH * sizeof(uint32_t), (byte *) unpackBuffer + BUFFERBYTES * buf_idx);
glBufferSubData(GL_PIXEL_UNPACK_BUFFER, BUFFERBYTES * buf_idx, h * ROW_LENGTH * sizeof(uint32_t), (uint8_t *) unpackBuffer + BUFFERBYTES * buf_idx);
glPixelStorei(GL_UNPACK_SKIP_PIXELS, BUFFERPIXELS * buf_idx + y * ROW_LENGTH + x);
glPixelStorei(GL_UNPACK_ROW_LENGTH, ROW_LENGTH);