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);