Fix build
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
31872d74ed
commit
be9b5d1612
2 changed files with 2 additions and 2 deletions
2
dpf
2
dpf
|
@ -1 +1 @@
|
|||
Subproject commit 3106d9a311c33a677e14828348657d21343c569d
|
||||
Subproject commit 0de149b8cbdc59d74273b7fc8b2193b0885afc33
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue