[Mesa-dev] [PATCH 2/4] glsl: make tex_opcode_strs static

Dave Airlie airlied at gmail.com
Fri Sep 14 20:18:22 PDT 2012


No reason for this to be global from what I can see

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/glsl/ir.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index f59cdd2..1c7aada 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -1282,7 +1282,7 @@ ir_dereference::is_lvalue() const
 }
 
 
-const char *tex_opcode_strs[] = { "tex", "txb", "txl", "txd", "txf", "txs" };
+static const char *tex_opcode_strs[] = { "tex", "txb", "txl", "txd", "txf", "txs" };
 
 const char *ir_texture::opcode_string()
 {
-- 
1.7.11.4



More information about the mesa-dev mailing list