SurfaceTexture: work around a compiler bug
This change works around a compiler bug with the GCC 4.6 toolchain.
Bug: 6292211
Change-Id: I004c4750d92a29f193a37d8e605a28fdc3b7f076
diff --git a/libs/gui/tests/SurfaceTexture_test.cpp b/libs/gui/tests/SurfaceTexture_test.cpp
index 3a5917f..ec4f8a4 100644
--- a/libs/gui/tests/SurfaceTexture_test.cpp
+++ b/libs/gui/tests/SurfaceTexture_test.cpp
@@ -409,7 +409,7 @@
// drawTexture draws the SurfaceTexture over the entire GL viewport.
void drawTexture() {
- const GLfloat triangleVertices[] = {
+ static const GLfloat triangleVertices[] = {
-1.0f, 1.0f,
-1.0f, -1.0f,
1.0f, -1.0f,