Skip to content
Snippets Groups Projects
Commit b225c6db authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Hugo Beauzée-Luyssen
Browse files

doc: QtGl: use nullptr and remove stray comments

parent 530cc094
No related branches found
No related tags found
1 merge request!908Documentation: QtGl sample: minor improvement
Pipeline #169245 passed with stage
in 16 minutes and 50 seconds
......@@ -342,7 +342,7 @@ void QtVLCWidget::paintGL()
{
QOpenGLFunctions *GL = context()->functions();
QOpenGLFramebufferObject *fbo = mVLC->getVideoFrame();
if (fbo != NULL && GL != NULL)
if (fbo != nullptr && GL != nullptr)
{
m_program->bind();
......@@ -353,7 +353,6 @@ void QtVLCWidget::paintGL()
vertexBuffer.bind();
m_program->setAttributeArray("position", (const QVector2D *)nullptr, sizeof(GLfloat)*2);
//vertexBuffer.release();
m_program->enableAttributeArray("position");
......@@ -364,11 +363,8 @@ void QtVLCWidget::paintGL()
GL_UNSIGNED_SHORT, /* type */
(void*)0 /* element array buffer offset */
);
//vertexIndexBuffer.release();
m_program->disableAttributeArray("position");
//m_program->release();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment