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