I'm trying to do a stereoscopic visualization in Qt. I have found some tutorials but all of them use the older QGLWidget
and the buffers GL_FRONT_LEFT
and GL_FRONT_RIGHT
.
AS I'm using the newer QOpenGLWidget
I tried drawing images to the same buffers but the call to glDrawBuffer(GL_FRONT_LEFT)
is generating a GL_INVALID_ENUM
.
I also saw that the default buffer is GL_COLOR_ATTACHMENT0
instead of GL_FRONT_LEFT
so I imagine I need to use a different set of buffers to enable stereo.
Which buffers should I use?