From be9b5d1612220cbed8a1adf85c2ccdebf24576a0 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 10 Feb 2022 12:57:54 +0000 Subject: [PATCH] Fix build Signed-off-by: falkTX --- dpf | 2 +- src/override/Window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dpf b/dpf index 3106d9a..0de149b 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 3106d9a311c33a677e14828348657d21343c569d +Subproject commit 0de149b8cbdc59d74273b7fc8b2193b0885afc33 diff --git a/src/override/Window.cpp b/src/override/Window.cpp index 5b2e49a..3ed6cad 100644 --- a/src/override/Window.cpp +++ b/src/override/Window.cpp @@ -509,7 +509,7 @@ void Window::step() { #endif // Allocate pixel color buffer - uint8_t* const pixels = new uint8_t[winHeight * winWidth * depth]; + uint8_t* const pixels = new uint8_t[winHeight * winWidth * 4]; // glReadPixels defaults to GL_BACK, but the back-buffer is unstable, so use the front buffer (what the user sees) glReadBuffer(GL_FRONT);