mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-15 22:02:29 +08:00
chore: reverted part of last commit
This commit is contained in:
parent
aee622da6c
commit
2c4884f432
@ -238,6 +238,7 @@ void CWallpaperApplication::takeScreenshot (const std::filesystem::path& filenam
|
|||||||
const uint8_t* pixel = buffer;
|
const uint8_t* pixel = buffer;
|
||||||
|
|
||||||
// read the viewport data into the 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,
|
glReadnPixels (viewport->viewport.x, viewport->viewport.y, viewport->viewport.z, viewport->viewport.w, GL_RGB,
|
||||||
GL_UNSIGNED_BYTE, bufferSize, buffer);
|
GL_UNSIGNED_BYTE, bufferSize, buffer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user