mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
st/xorg: initialize indexes before reswizzling for yuv
This commit is contained in:
parent
0b069d648b
commit
b5fb60041e
1 changed files with 2 additions and 0 deletions
|
|
@ -237,6 +237,8 @@ copy_packed_data(ScrnInfoPtr pScrn,
|
|||
umap = (char*)screen->transfer_map(screen, utrans);
|
||||
vmap = (char*)screen->transfer_map(screen, vtrans);
|
||||
|
||||
yidx = uidx = vidx = 0;
|
||||
|
||||
switch (id) {
|
||||
case FOURCC_YV12: {
|
||||
for (i = 0; i < w; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue