Fix build

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-02-10 12:57:54 +00:00
parent 31872d74ed
commit be9b5d1612
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
2 changed files with 2 additions and 2 deletions

2
dpf

@ -1 +1 @@
Subproject commit 3106d9a311c33a677e14828348657d21343c569d
Subproject commit 0de149b8cbdc59d74273b7fc8b2193b0885afc33

View file

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