EFB Reads are so slow in D3D that I think we need an option for it. Here it is.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4378 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-10-07 19:54:56 +00:00
parent bf595e31be
commit 9c45ac7e35
8 changed files with 29 additions and 12 deletions

View File

@ -499,7 +499,8 @@ u32 Renderer::AccessEFB(EFBAccessType type, int x, int y)
val = ((float)((u16 *)drect.pBits)[0])/((float)0xFFFF);
break;
default:
val=0;
val = 0;
break;
};
// [0.0, 1.0] ==> [0, 0xFFFFFFFF]
z = ((u32)(val * 0xffffff));// 0xFFFFFFFF;