aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/program
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-08-01 08:02:35 +0200
committermarha <marha@users.sourceforge.net>2012-08-01 08:02:35 +0200
commit49838240b7d4cff1ffed1bd91e495f6919061f90 (patch)
tree70bd36783cafbf991721b06134bafdd360ccbe06 /mesalib/src/mesa/program
parentbd27b3d008b0abf9ae2edcb127302728808533e4 (diff)
downloadvcxsrv-49838240b7d4cff1ffed1bd91e495f6919061f90.tar.gz
vcxsrv-49838240b7d4cff1ffed1bd91e495f6919061f90.tar.bz2
vcxsrv-49838240b7d4cff1ffed1bd91e495f6919061f90.zip
git mesa update 1 Aug 2012
Diffstat (limited to 'mesalib/src/mesa/program')
-rw-r--r--mesalib/src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mesa/program/ir_to_mesa.cpp b/mesalib/src/mesa/program/ir_to_mesa.cpp
index baa317204..255a8a76a 100644
--- a/mesalib/src/mesa/program/ir_to_mesa.cpp
+++ b/mesalib/src/mesa/program/ir_to_mesa.cpp
@@ -334,7 +334,7 @@ dst_reg address_reg = dst_reg(PROGRAM_ADDRESS, WRITEMASK_X);
static int
swizzle_for_size(int size)
{
- int size_swizzles[4] = {
+ static const int size_swizzles[4] = {
MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_X, SWIZZLE_X, SWIZZLE_X),
MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y),
MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_Z),