chore: reverted part of last commit

This commit is contained in:
Almamu 2025-04-01 02:56:09 +02:00
parent aee622da6c
commit 2c4884f432

View File

@ -238,6 +238,7 @@ void CWallpaperApplication::takeScreenshot (const std::filesystem::path& filenam
const uint8_t* pixel = buffer;
// read the viewport data into the pixel buffer
glPixelStorei (GL_PACK_ALIGNMENT, 1);
glReadnPixels (viewport->viewport.x, viewport->viewport.y, viewport->viewport.z, viewport->viewport.w, GL_RGB,
GL_UNSIGNED_BYTE, bufferSize, buffer);