From e103408b3b879e003154efa6dc317de53e2fd34e Mon Sep 17 00:00:00 2001 From: Learn OpenGL ES Date: Wed, 2 Apr 2014 17:10:00 -0400 Subject: [PATCH] Fix (h/t 'fish') --- .../com/learnopengles/android/lesson6/LessonSixRenderer.java | 2 ++ 1 file changed, 2 insertions(+) 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();