diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-08 02:23:31 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-08 02:23:31 (GMT) |
commit | 79ad2c1d4f5205245c929be1c0db2c678d185038 (patch) | |
tree | fc9dfdf522a8bcab40a9d27cce1e25882bc33a52 /examples/opengl/textures/window.cpp | |
parent | ea19e075c7eb34a6a7979fa3cfb2dcc838d33c11 (diff) | |
download | Qt-79ad2c1d4f5205245c929be1c0db2c678d185038.zip Qt-79ad2c1d4f5205245c929be1c0db2c678d185038.tar.gz Qt-79ad2c1d4f5205245c929be1c0db2c678d185038.tar.bz2 |
Port examples/opengl/textures to OpenGL/ES 1.1
Reviewed-by: Sarah Smith
Diffstat (limited to 'examples/opengl/textures/window.cpp')
-rw-r--r-- | examples/opengl/textures/window.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/opengl/textures/window.cpp b/examples/opengl/textures/window.cpp index ea64512..9bd7931 100644 --- a/examples/opengl/textures/window.cpp +++ b/examples/opengl/textures/window.cpp @@ -48,8 +48,6 @@ Window::Window() { QGridLayout *mainLayout = new QGridLayout; - glWidgets[0][0] = 0; - for (int i = 0; i < NumRows; ++i) { for (int j = 0; j < NumColumns; ++j) { QColor clearColor; @@ -57,7 +55,7 @@ Window::Window() / (NumRows * NumColumns - 1), 255, 63); - glWidgets[i][j] = new GLWidget(0, glWidgets[0][0]); + glWidgets[i][j] = new GLWidget(0, 0); glWidgets[i][j]->setClearColor(clearColor); glWidgets[i][j]->rotateBy(+42 * 16, +42 * 16, -21 * 16); mainLayout->addWidget(glWidgets[i][j], i, j); |