diff options
author | Paul Wicking <paul.wicking@qt.io> | 2018-06-22 16:27:19 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2018-06-26 07:58:39 +0000 |
commit | 4d326555ab60e9f19dddaabc34bbabc2a3ebb514 (patch) | |
tree | bcb33b7fa85ed97775f3aa30ea58d339d2b070ff /examples/opengl/hellogles3/glwindow.cpp | |
parent | 1049d3f9db2b9bbdf5438b9f53849b82a2286848 (diff) | |
download | qtbase-4d326555ab60e9f19dddaabc34bbabc2a3ebb514.tar.gz |
Doc: Add Hello GLES3 example
Task-number: QTBUG-67109
Change-Id: I55135264a63b78502b300de723a25b3f363af58b
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'examples/opengl/hellogles3/glwindow.cpp')
-rw-r--r-- | examples/opengl/hellogles3/glwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/hellogles3/glwindow.cpp b/examples/opengl/hellogles3/glwindow.cpp index 13cbc41ce8..9458b74810 100644 --- a/examples/opengl/hellogles3/glwindow.cpp +++ b/examples/opengl/hellogles3/glwindow.cpp @@ -243,7 +243,8 @@ void GLWindow::initializeGL() f->glEnableVertexAttribArray(0); f->glEnableVertexAttribArray(1); f->glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), 0); - f->glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), reinterpret_cast<void *>(3 * sizeof(GLfloat))); + f->glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), + reinterpret_cast<void *>(3 * sizeof(GLfloat))); m_vbo->release(); f->glEnable(GL_DEPTH_TEST); |