mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
util: Modified u_rect to default to memcpy.
Previously this function would assert if the format didn't fit an expected 4 channel format size. Now will work with any format type with any amount of channels. Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
65016646e3
commit
9bd4856b5c
1 changed files with 1 additions and 8 deletions
|
|
@ -144,11 +144,7 @@ util_fill_rect(ubyte * dst,
|
|||
dst += dst_stride;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
case 12:
|
||||
case 16:
|
||||
case 24:
|
||||
case 32:
|
||||
default:
|
||||
for (i = 0; i < height; i++) {
|
||||
ubyte *row = dst;
|
||||
for (j = 0; j < width; j++) {
|
||||
|
|
@ -158,8 +154,5 @@ util_fill_rect(ubyte * dst,
|
|||
dst += dst_stride;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue