diff options
| author | 2017-11-03 16:15:21 +0000 | |
|---|---|---|
| committer | 2017-11-03 16:15:21 +0000 | |
| commit | b60bde6ffc8c1129e3d6063cb5a362925ed6b834 (patch) | |
| tree | b1509f3a632f937df7375e813b2d73a31e4e2f8f /opengl/libagl/array.cpp | |
| parent | ceeb154b9f3d2179c10c95a2c94701f4c99a85ac (diff) | |
| parent | fe805e8913bfa2337907282ce8c4d06797168b26 (diff) | |
Merge "Use -Werror in frameworks/native/opengl/libagl" am: d4f0d3a4d2
am: fe805e8913
Change-Id: Icb4254fabad368dbe5ea7fa534300e69e4027faf
Diffstat (limited to 'opengl/libagl/array.cpp')
| -rw-r--r-- | opengl/libagl/array.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/opengl/libagl/array.cpp b/opengl/libagl/array.cpp index 54207fa212..2d36c6194e 100644 --- a/opengl/libagl/array.cpp +++ b/opengl/libagl/array.cpp @@ -136,9 +136,6 @@ void ogles_uninit_array(ogles_context_t* c) static void currentColor(ogles_context_t* c, GLfixed* v, const GLvoid*) { memcpy(v, c->current.color.v, sizeof(vec4_t)); } -static void currentColor_clamp(ogles_context_t* c, GLfixed* v, const GLvoid*) { - memcpy(v, c->currentColorClamped.v, sizeof(vec4_t)); -} static void currentNormal(ogles_context_t* c, GLfixed* v, const GLvoid*) { memcpy(v, c->currentNormal.v, sizeof(vec3_t)); } @@ -349,6 +346,7 @@ void vertex_cache_t::init() { // make sure the size of vertex_t allows cache-line alignment CTA<(sizeof(vertex_t) & 0x1F) == 0> assertAlignedSize; + (void)assertAlignedSize; // suppress unused warning. const int align = 32; const size_t s = VERTEX_BUFFER_SIZE + VERTEX_CACHE_SIZE; |