diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-09-29 09:49:13 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-09-29 09:49:13 -0700 |
commit | 4378f1175546616c76ecb7f0b1159940ab22d5f4 (patch) | |
tree | 900b42e369c9cd58340c88dee93dc0139c7afe5c /libs/rs/rsScriptC_LibGL.cpp | |
parent | 5f421a56786cf7c71159280c51bd4280f5199cfb (diff) |
More robust attribute binding
Adding attribute and uniform debug logging.
Checking to see if aniso filtering is available.
Change-Id: I2ed9d166ed7ff3df971d7af18b7a33f4e3ade928
Diffstat (limited to 'libs/rs/rsScriptC_LibGL.cpp')
-rw-r--r-- | libs/rs/rsScriptC_LibGL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rs/rsScriptC_LibGL.cpp b/libs/rs/rsScriptC_LibGL.cpp index 4be50593db4f..fd4c379cb904 100644 --- a/libs/rs/rsScriptC_LibGL.cpp +++ b/libs/rs/rsScriptC_LibGL.cpp @@ -151,8 +151,8 @@ static void SC_drawQuadTexCoords(float x1, float y1, float z1, const float tex[] = {u1,v1, u2,v2, u3,v3, u4,v4}; VertexArray va; - va.add(GL_FLOAT, 3, 12, false, (uint32_t)vtx, "position"); - va.add(GL_FLOAT, 2, 8, false, (uint32_t)tex, "texture0"); + va.add(GL_FLOAT, 3, 12, false, (uint32_t)vtx, "ATTRIB_position"); + va.add(GL_FLOAT, 2, 8, false, (uint32_t)tex, "ATTRIB_texture0"); va.setupGL2(rsc, &rsc->mStateVertexArray, &rsc->mShaderCache); glDrawArrays(GL_TRIANGLE_FAN, 0, 4); |