mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-15 06:58:37 +02:00
EfbInterface: Move buffer constant from the header to the cpp file
This is only ever used internally, so we can limit its scope to the only usage point.
This commit is contained in:
@ -32,7 +32,9 @@ static inline u32 GetColorOffset(u16 x, u16 y)
|
||||
|
||||
static inline u32 GetDepthOffset(u16 x, u16 y)
|
||||
{
|
||||
return (x + y * EFB_WIDTH) * 3 + DEPTH_BUFFER_START;
|
||||
constexpr u32 depth_buffer_start = EFB_WIDTH * EFB_HEIGHT * 3;
|
||||
|
||||
return (x + y * EFB_WIDTH) * 3 + depth_buffer_start;
|
||||
}
|
||||
|
||||
static void SetPixelAlphaOnly(u32 offset, u8 a)
|
||||
|
Reference in New Issue
Block a user