diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-08-24 09:49:24 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-08-24 09:59:13 +0700 |
commit | 1eca7017e7ed397e08d8b4a61be4de9308881fd0 (patch) | |
tree | 7bc7df09ae1cf03ccb699a3535f3673c79d8abe0 /tests/float_tex.cpp | |
parent | b21b6eecc4d78266ed5333de35734b532cfa0c06 (diff) |
Fix browser.test_float_tex.
This should be getting the size of a float, not a uint.
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"); |