Fix glGetError() call

pull/3/head
Hleb Valoshka 2019-07-07 12:33:59 +03:00
parent bd51baf8f9
commit 9fe2198ebb
1 changed files with 1 additions and 1 deletions

View File

@ -7912,5 +7912,5 @@ bool Renderer::captureFrame(int x, int y, int w, int h, Renderer::PixelFormat fo
glReadBuffer(back ? GL_BACK : GL_FRONT);
glReadPixels(x, y, w, h, toGLFormat(format), GL_UNSIGNED_BYTE, (void*) buffer);
return glGetError == GL_NO_ERROR;
return glGetError() == GL_NO_ERROR;
}