From a96b6bdea3d5ece7b1f3bcae40e9fe632ebc8f22 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Wed, 11 Apr 2012 17:27:12 -0700 Subject: [PATCH] SurfaceTexture: work around a compiler bug This change works around a compiler bug with the GCC 4.6 toolchain. Bug: 6292211 Change-Id: I004c4750d92a29f193a37d8e605a28fdc3b7f076 --- libs/gui/tests/SurfaceTexture_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gui/tests/SurfaceTexture_test.cpp b/libs/gui/tests/SurfaceTexture_test.cpp index 3a5917f57..ec4f8a46c 100644 --- a/libs/gui/tests/SurfaceTexture_test.cpp +++ b/libs/gui/tests/SurfaceTexture_test.cpp @@ -409,7 +409,7 @@ protected: // 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,