mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-21 18:03:22 +02:00
Merge pull request #598 from Subv/dpt
GPU: Fixed RGBA8 as output format in a display transfer.
This commit is contained in:
commit
131454ab3e
@ -167,16 +167,15 @@ inline void Write(u32 addr, const T data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (config.output_format) {
|
switch (config.output_format) {
|
||||||
/*case Regs::PixelFormat::RGBA8:
|
case Regs::PixelFormat::RGBA8:
|
||||||
{
|
{
|
||||||
// TODO: Untested
|
u8* dstptr = dest_pointer + (x * pixel_skip + y * config.output_width) * 4;
|
||||||
u8* dstptr = (u32*)(dest_pointer + x * 4 + y * config.output_width * 4);
|
dstptr[3] = source_color.r;
|
||||||
dstptr[0] = source_color.r;
|
dstptr[2] = source_color.g;
|
||||||
dstptr[1] = source_color.g;
|
dstptr[1] = source_color.b;
|
||||||
dstptr[2] = source_color.b;
|
dstptr[0] = source_color.a;
|
||||||
dstptr[3] = source_color.a;
|
|
||||||
break;
|
break;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
case Regs::PixelFormat::RGB8:
|
case Regs::PixelFormat::RGB8:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user