Mesa (master): mesa: remove COPY_4V_CAST() macro

Brian Paul brianp at kemper.freedesktop.org
Wed Aug 29 14:39:32 UTC 2012


Module: Mesa
Branch: master
Commit: cf41d7c63aab2289d739c0f9df116caf2cc410e3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf41d7c63aab2289d739c0f9df116caf2cc410e3

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Aug 25 06:43:37 2012 -0600

mesa: remove COPY_4V_CAST() macro

Only used in one place, and not really needed.

---

 src/mesa/main/clear.c  |    2 +-
 src/mesa/main/macros.h |    9 ---------
 2 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index 7cc204b..cfb0600 100644
--- a/src/mesa/main/clear.c
+++ b/src/mesa/main/clear.c
@@ -510,7 +510,7 @@ _mesa_ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value)
             /* save color */
             clearSave = ctx->Color.ClearColor;
             /* set color */
-            COPY_4V_CAST(ctx->Color.ClearColor.f, value, GLclampf);
+            COPY_4V(ctx->Color.ClearColor.f, value);
             /* clear buffer(s) */
             ctx->Driver.Clear(ctx, mask);
             /* restore color */
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 411b16d..bc4d1a6 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -215,15 +215,6 @@ do {                                \
    (DST)[3] = (SRC)[3];             \
 } while (0)
 
-/** Copy a 4-element vector with cast */
-#define COPY_4V_CAST( DST, SRC, CAST )  \
-do {                                    \
-   (DST)[0] = (CAST)(SRC)[0];           \
-   (DST)[1] = (CAST)(SRC)[1];           \
-   (DST)[2] = (CAST)(SRC)[2];           \
-   (DST)[3] = (CAST)(SRC)[3];           \
-} while (0)
-
 /** Copy a 4-element unsigned byte vector */
 #if defined(__i386__)
 #define COPY_4UBV(DST, SRC)                 \




More information about the mesa-commit mailing list