diff --git a/android/AndroidOpenGLESLessons/src/com/learnopengles/android/lesson6/LessonSixRenderer.java b/android/AndroidOpenGLESLessons/src/com/learnopengles/android/lesson6/LessonSixRenderer.java index efbbb30..c58b6ef 100644 --- a/android/AndroidOpenGLESLessons/src/com/learnopengles/android/lesson6/LessonSixRenderer.java +++ b/android/AndroidOpenGLESLessons/src/com/learnopengles/android/lesson6/LessonSixRenderer.java @@ -538,6 +538,8 @@ public void onDrawFrame(GL10 glUnused) mCubeTextureCoordinates.position(0); GLES20.glVertexAttribPointer(mTextureCoordinateHandle, mTextureCoordinateDataSize, GLES20.GL_FLOAT, false, 0, mCubeTextureCoordinates); + + GLES20.glEnableVertexAttribArray(mTextureCoordinateHandle); drawCube();