-
Notifications
You must be signed in to change notification settings - Fork 21
h0pbeat edited this page Dec 23, 2012
·
2 revisions
Data reading on OSX is performed using hidapi.
VSync is not enabled by default in Qt/OpenGL resulting in tearing.
In order to enable it, in glwidget.cpp
:
#if defined(Q_OS_MAC)
#include <OpenGL.h>
#endif
...
void GLWidget::initializeGL()
{
#if defined(Q_OS_MAC)
const GLint swapInterval = 1;
CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &swapInterval);
#endif
...