mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
fixed GL_REPLACE / GL_RGB bug
This commit is contained in:
parent
8927fbe9c5
commit
35e5e89f56
1 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: s_triangle.c,v 1.45 2002/01/09 00:09:33 brianp Exp $ */
|
||||
/* $Id: s_triangle.c,v 1.46 2002/01/09 00:27:49 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -392,7 +392,12 @@ affine_span(GLcontext *ctx, struct sw_span *span,
|
|||
|
||||
/* shortcuts */
|
||||
|
||||
#define NEAREST_RGB_REPLACE NEAREST_RGB;REPLACE
|
||||
#define NEAREST_RGB_REPLACE \
|
||||
NEAREST_RGB; \
|
||||
dest[0] = sample[0]; \
|
||||
dest[1] = sample[1]; \
|
||||
dest[2] = sample[2]; \
|
||||
dest[3] = FixedToInt(span->alpha);
|
||||
|
||||
#define NEAREST_RGBA_REPLACE COPY_CHAN4(dest, tex00)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue