mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
mesa: remove COPY_4V_CAST() macro
Only used in one place, and not really needed.
This commit is contained in:
parent
fd9afb87d8
commit
cf41d7c63a
2 changed files with 1 additions and 10 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue