We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfb3c3f + f74a8b0 commit 3199e15Copy full SHA for 3199e15
ndk/platforms/android-18/samples/Teapot/jni/TeapotRenderer.cpp
@@ -62,7 +62,7 @@ void TeapotRenderer::init()
62
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
63
64
//Create VBO
65
- _iNumVertices = sizeof(teapotPositions) / sizeof(teapotPositions[0]);
+ _iNumVertices = sizeof(teapotPositions) / sizeof(teapotPositions[0]) / 3;
66
int32_t iStride = sizeof(TEAPOT_VERTEX);
67
int32_t iIndex = 0;
68
TEAPOT_VERTEX* p = new TEAPOT_VERTEX[_iNumVertices];
0 commit comments