aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer/tr_shade.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/renderer/tr_shade.c')
-rw-r--r--code/renderer/tr_shade.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/code/renderer/tr_shade.c b/code/renderer/tr_shade.c
index e6f8688..d2b164b 100644
--- a/code/renderer/tr_shade.c
+++ b/code/renderer/tr_shade.c
@@ -22,6 +22,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// tr_shade.c
#include "tr_local.h"
+#if idppc_altivec
+#include <altivec.h>
+#endif
/*
@@ -409,10 +412,10 @@ static void ProjectDlightTexture( void ) {
vector short colorShort;
vector signed int colorInt;
vector unsigned char floatColorVecPerm, modulatePerm, colorChar;
- vector unsigned char vSel = (vector unsigned char)(0x00, 0x00, 0x00, 0xff,
+ vector unsigned char vSel = (vector unsigned char){0x00, 0x00, 0x00, 0xff,
0x00, 0x00, 0x00, 0xff,
0x00, 0x00, 0x00, 0xff,
- 0x00, 0x00, 0x00, 0xff);
+ 0x00, 0x00, 0x00, 0xff};
#else
vec3_t origin;
#endif