SPAN_VARS
#endif
GLuint i;
+ ASSERT(mask);
for (i = 0; i < n; i++) {
if (mask[i]) {
INIT_PIXEL_PTR(pixel, x[i], y[i]);
INC_PIXEL_PTR(pixel);
}
}
- else if (sizeof(*pixel) == sizeof(GLuint)) {
- _mesa_memcpy(pixel, index, n * sizeof(GLuint));
- }
else {
for (i = 0; i < n; i++) {
STORE_CI_PIXEL(pixel, index[i]);
INC_PIXEL_PTR(pixel);
}
}
- else if (sizeof(*pixel) == sizeof(GLubyte)) {
- _mesa_memcpy(pixel, index, n * sizeof(GLubyte));
- }
else {
for (i = 0; i < n; i++) {
STORE_CI_PIXEL(pixel, index[i]);
#endif
GLuint i;
INIT_PIXEL_PTR(pixel, x, y);
- for (i = 0; i < n; i++) {
- if (mask[i]) {
+ if (mask) {
+ for (i = 0; i < n; i++) {
+ if (mask[i]) {
+ STORE_CI_PIXEL(pixel, colorIndex);
+ }
+ INC_PIXEL_PTR(pixel);
+ }
+ }
+ else {
+ for (i = 0; i < n; i++) {
STORE_CI_PIXEL(pixel, colorIndex);
+ INC_PIXEL_PTR(pixel);
}
- INC_PIXEL_PTR(pixel);
- }
+ }
}
SPAN_VARS
#endif
GLuint i;
+ ASSERT(mask);
for (i = 0; i < n; i++) {
if (mask[i]) {
INIT_PIXEL_PTR(pixel, x[i], y[i]);
SPAN_VARS
#endif
GLuint i;
+ ASSERT(mask);
for (i = 0; i < n; i++) {
if (mask[i]) {
INIT_PIXEL_PTR(pixel, x[i], y[i]);
SPAN_VARS
#endif
GLuint i;
+ ASSERT(mask);
for (i = 0; i < n; i++) {
if (mask[i] ) {
INIT_PIXEL_PTR(pixel, x[i], y[i]);