use COPY_CHAN4 macro

This commit is contained in:
Brian Paul
2003-01-20 15:20:27 +00:00
parent 8f95d790da
commit a12d12d119
2 changed files with 7 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
/* $Id: s_aatriangle.c,v 1.26 2002/10/24 23:57:24 brianp Exp $ */
/* $Id: s_aatriangle.c,v 1.27 2003/01/20 15:20:27 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 4.1
* Version: 5.1
*
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
* Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -31,6 +31,7 @@
#include "glheader.h"
#include "colormac.h"
#include "macros.h"
#include "imports.h"
#include "mmath.h"

View File

@@ -1,4 +1,4 @@
/* $Id: s_aatritemp.h,v 1.32 2003/01/20 00:25:17 brianp Exp $ */
/* $Id: s_aatritemp.h,v 1.33 2003/01/20 15:20:27 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -464,10 +464,10 @@
GLint j;
for (j = 0; j < (GLint) n; j++) {
#ifdef DO_RGBA
COPY_4V(array->rgba[j], array->rgba[j + left]);
COPY_CHAN4(array->rgba[j], array->rgba[j + left]);
#endif
#ifdef DO_SPEC
COPY_4V(array->spec[j], array->spec[j + left]);
COPY_CHAN4(array->spec[j], array->spec[j + left]);
#endif
#ifdef DO_INDEX
array->index[j] = array->index[j + left];