vblankmanager: Fix build

This commit is contained in:
Joshua Ashton 2022-07-27 15:58:56 +00:00
parent 7adbdd3f80
commit 30b74a762a

View file

@ -73,7 +73,7 @@ void vblankThreadRun( void )
// target refresh so we don't miss submitting for vblank in DRM.
// (This fixes 4K@30Hz screens)
const uint64_t nsecToSec = 1'000'000'000ul;
const drm_screen_type screen_type = drm_get_screen_type();
const drm_screen_type screen_type = drm_get_screen_type( &g_DRM );
const uint64_t redZone = screen_type == DRM_SCREEN_TYPE_INTERNAL
? g_uVblankDrawBufferRedZoneNS
: ( g_uVblankDrawBufferRedZoneNS * 60 * nsecToSec ) / ( refresh * nsecToSec );