Fix wrong colours on local cursor
The RGB order was backwards compared to the pixel format we've requested, resulting in the red and blue channels getting swapped.
This commit is contained in:
parent
e677b66cc7
commit
a7ca8e5c1a
|
@ -841,9 +841,9 @@
|
||||||
cur.push(alpha); // alpha
|
cur.push(alpha); // alpha
|
||||||
} else {
|
} else {
|
||||||
idx = ((w0 * y) + x) * 4;
|
idx = ((w0 * y) + x) * 4;
|
||||||
cur.push(pixels[idx + 2]); // blue
|
cur.push(pixels[idx]); // blue
|
||||||
cur.push(pixels[idx + 1]); // green
|
cur.push(pixels[idx + 1]); // green
|
||||||
cur.push(pixels[idx]); // red
|
cur.push(pixels[idx + 2]); // red
|
||||||
cur.push(alpha); // alpha
|
cur.push(alpha); // alpha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue