mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
change mask[] test in put_mono_row_uint()
This commit is contained in:
parent
14570e6d7c
commit
8fadf8f900
1 changed files with 11 additions and 3 deletions
|
|
@ -373,10 +373,18 @@ put_mono_row_uint(GLcontext *ctx, struct gl_renderbuffer *rb, GLuint count,
|
|||
{
|
||||
const GLuint val = *((const GLuint *) value);
|
||||
GLuint *dst = (GLuint *) rb->Data + y * rb->Width + x;
|
||||
GLuint i;
|
||||
ASSERT(rb->DataType == GL_UNSIGNED_INT);
|
||||
for (i = 0; i < count; i++) {
|
||||
if (!mask || mask[i]) {
|
||||
if (mask) {
|
||||
GLuint i;
|
||||
for (i = 0; i < count; i++) {
|
||||
if (mask[i]) {
|
||||
dst[i] = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
GLuint i;
|
||||
for (i = 0; i < count; i++) {
|
||||
dst[i] = val;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue