diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-24 11:34:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-24 11:34:28 -0700 |
commit | e14d1653664b12c5ea6587d9914745472f55b196 (patch) | |
tree | 9853cea803db0bf7653b5aa05b2fa52cc0602fbd /tests/float_tex.cpp | |
parent | 3daa674543695403b6951ffef77430aa04b2dcf9 (diff) | |
parent | 4830246784330dfed1538a534a6dfd35c87b93f6 (diff) |
Merge pull request #1551 from waywardmonkeys/fix_browser_test_issues
Fix browser test issues
Diffstat (limited to 'tests/float_tex.cpp')
-rw-r--r-- | tests/float_tex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/float_tex.cpp b/tests/float_tex.cpp index 61531124..c40ff786 100644 --- a/tests/float_tex.cpp +++ b/tests/float_tex.cpp @@ -113,7 +113,7 @@ static void gl_init(void) { /* Store the vertices in a vertex buffer object (VBO) */ glGenBuffers(1, &indicesVBO); glBindBuffer(GL_ARRAY_BUFFER, indicesVBO); - glBufferData(GL_ARRAY_BUFFER, elements.size() * sizeof(uint), &elements[0], GL_STATIC_DRAW); + glBufferData(GL_ARRAY_BUFFER, elements.size() * sizeof(float), &elements[0], GL_STATIC_DRAW); /* Get the locations of the uniforms so we can access them */ nodeSamplerLocation = glGetUniformLocation(program, "nodeInfo"); glBindAttribLocation(program, 0, "indices"); |