mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mask is always non-null in write_rgba_pixels and write_monorgba_pixels
This commit is contained in:
parent
1e27ca69f8
commit
cf8aede714
1 changed files with 13 additions and 15 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: s_spantemp.h,v 1.1.2.1 2002/11/21 16:00:27 brianp Exp $ */
|
||||
/* $Id: s_spantemp.h,v 1.1.2.2 2002/11/28 15:55:41 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -135,13 +135,12 @@ NAME(write_rgba_pixels)( const GLcontext *ctx, GLuint n,
|
|||
SPAN_VARS
|
||||
#endif
|
||||
GLuint i;
|
||||
if (mask) {
|
||||
for (i = 0; i < n; i++) {
|
||||
if (mask[i]) {
|
||||
INIT_PIXEL_PTR(pixel, x[i], y[i]);
|
||||
STORE_RGBA_PIXEL(pixel, rgba[i][RCOMP], rgba[i][GCOMP],
|
||||
rgba[i][BCOMP], rgba[i][ACOMP]);
|
||||
}
|
||||
ASSERT(mask);
|
||||
for (i = 0; i < n; i++) {
|
||||
if (mask[i]) {
|
||||
INIT_PIXEL_PTR(pixel, x[i], y[i]);
|
||||
STORE_RGBA_PIXEL(pixel, rgba[i][RCOMP], rgba[i][GCOMP],
|
||||
rgba[i][BCOMP], rgba[i][ACOMP]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -155,13 +154,12 @@ NAME(write_monorgba_pixels)( const GLcontext *ctx,
|
|||
SPAN_VARS
|
||||
#endif
|
||||
GLuint i;
|
||||
if (mask) {
|
||||
for (i = 0; i < n; i++) {
|
||||
if (mask[i]) {
|
||||
INIT_PIXEL_PTR(pixel, x[i], y[i]);
|
||||
STORE_RGBA_PIXEL(pixel, color[RCOMP], color[GCOMP],
|
||||
color[BCOMP], color[ACOMP]);
|
||||
}
|
||||
ASSERT(mask);
|
||||
for (i = 0; i < n; i++) {
|
||||
if (mask[i]) {
|
||||
INIT_PIXEL_PTR(pixel, x[i], y[i]);
|
||||
STORE_RGBA_PIXEL(pixel, color[RCOMP], color[GCOMP],
|
||||
color[BCOMP], color[ACOMP]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue