From 6a25a3a3d011deb6dbf40e6f99c0095e2b76a553 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 25 Feb 2021 22:27:20 -0600 Subject: [PATCH] Don't require DRM master for SDL KMSDRM backend --- app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 32d4e5c2..cab263db 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -395,6 +395,9 @@ int main(int argc, char *argv[]) // future KMSDRM platforms that use SDL for rendering. SDL_SetHint(SDL_HINT_VIDEO_DOUBLE_BUFFER, "1"); + // We use MMAL to render on Raspberry Pi, so we do not require DRM master. + SDL_SetHint("SDL_KMSDRM_REQUIRE_DRM_MASTER", "0"); + // Use Direct3D 9Ex to avoid a deadlock caused by the D3D device being reset when // the user triggers a UAC prompt. This option controls the software/SDL renderer. // The DXVA2 renderer uses Direct3D 9Ex itself directly.