OGL: Join declarations and assignments in Render
This commit is contained in:
parent
eeb0f0b7c4
commit
a94e4dd07f
|
@ -1003,8 +1003,6 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data)
|
|||
{
|
||||
case PEEK_Z:
|
||||
{
|
||||
u32 z;
|
||||
|
||||
if (!s_efbCacheValid[0][cacheRectIdx])
|
||||
{
|
||||
if (s_MSAASamples > 1)
|
||||
|
@ -1028,7 +1026,7 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data)
|
|||
|
||||
u32 xRect = x % EFB_CACHE_RECT_SIZE;
|
||||
u32 yRect = y % EFB_CACHE_RECT_SIZE;
|
||||
z = s_efbCache[0][cacheRectIdx][yRect * EFB_CACHE_RECT_SIZE + xRect];
|
||||
u32 z = s_efbCache[0][cacheRectIdx][yRect * EFB_CACHE_RECT_SIZE + xRect];
|
||||
|
||||
// if Z is in 16 bit format you must return a 16 bit integer
|
||||
if (bpmem.zcontrol.pixel_format == PEControl::RGB565_Z16)
|
||||
|
@ -1044,9 +1042,6 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data)
|
|||
// Tested in Killer 7, the first 8bits represent the alpha value which is used to
|
||||
// determine if we're aiming at an enemy (0x80 / 0x88) or not (0x70)
|
||||
// Wind Waker is also using it for the pictograph to determine the color of each pixel
|
||||
|
||||
u32 color;
|
||||
|
||||
if (!s_efbCacheValid[1][cacheRectIdx])
|
||||
{
|
||||
if (s_MSAASamples > 1)
|
||||
|
@ -1075,7 +1070,7 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data)
|
|||
|
||||
u32 xRect = x % EFB_CACHE_RECT_SIZE;
|
||||
u32 yRect = y % EFB_CACHE_RECT_SIZE;
|
||||
color = s_efbCache[1][cacheRectIdx][yRect * EFB_CACHE_RECT_SIZE + xRect];
|
||||
u32 color = s_efbCache[1][cacheRectIdx][yRect * EFB_CACHE_RECT_SIZE + xRect];
|
||||
|
||||
// check what to do with the alpha channel (GX_PokeAlphaRead)
|
||||
PixelEngine::UPEAlphaReadReg alpha_read_mode = PixelEngine::GetAlphaReadMode();
|
||||
|
|
Loading…
Reference in New Issue