git-svn-id: svn://db.shs.com.ru/libs@606 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-10-08 11:47:44 +00:00
parent c0c11def52
commit 1305a25427
3 changed files with 7 additions and 3 deletions

View File

@@ -89,6 +89,10 @@ void glDrawQuad(QOpenGLShaderProgram * prog, QVector4D * corner_dirs, GLfloat x,
glFuncs->glEnableVertexAttribArray(locc);
glFuncs->glVertexAttribPointer(locc, 3, GL_FLOAT, 0, 0, vcs);
glFuncs->glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
glFuncs->glDisableVertexAttribArray(loc);
glFuncs->glDisableVertexAttribArray(locv);
glFuncs->glDisableVertexAttribArray(loct);
glFuncs->glDisableVertexAttribArray(locc);
} else {
glBegin(GL_TRIANGLE_STRIP);
glColor4f(1.f, 1.f, 1.f, 1.f);