GPU: Corrected the 24 bit memory fills component order
This commit is contained in:
1 parent
93e32bce72
commit
a762f9c176
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -81,9 +81,9 @@ inline void Write(u32 addr, const T data) {
|
||||
if (config.fill_24bit) {
|
||||
// fill with 24-bit values
|
||||
for (u8* ptr = start; ptr < end; ptr += 3) {
|
||||
ptr[0] = config.value_24bit_b;
|
||||
ptr[0] = config.value_24bit_r;
|
||||
ptr[1] = config.value_24bit_g;
|
||||
ptr[2] = config.value_24bit_r;
|
||||
ptr[2] = config.value_24bit_b;
|
||||
}
|
||||
} else if (config.fill_32bit) {
|
||||
// fill with 32-bit values
|
||||
|
||||
Reference in new issue
Block a user