mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
VideoBackends: Use proper floating point depth precision.
This commit is contained in:
parent
268b8fd26f
commit
c4f85a38e6
5 changed files with 12 additions and 12 deletions
|
@ -419,11 +419,11 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data)
|
|||
if (bpmem.zcontrol.pixel_format == PEControl::RGB565_Z16)
|
||||
{
|
||||
// if Z is in 16 bit format you must return a 16 bit integer
|
||||
ret = ((u32)(val * 0xffff));
|
||||
ret = ((u32)(val * 65536.0f));
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = ((u32)(val * 0xffffff));
|
||||
ret = ((u32)(val * 16777216.0f));
|
||||
}
|
||||
D3D::context->Unmap(read_tex, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue