From 3a796c97227b6d3823e507951e2acab350153e72 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 26 Feb 2024 15:13:10 -0800 Subject: [PATCH] Allow specifying the render driver in the environment for testffmpeg --- test/testffmpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/testffmpeg.c b/test/testffmpeg.c index e4c6727968..8acdc927f9 100644 --- a/test/testffmpeg.c +++ b/test/testffmpeg.c @@ -1016,6 +1016,9 @@ int main(int argc, char *argv[]) #elif !defined(SDL_PLATFORM_WIN32) window_flags |= SDL_WINDOW_OPENGL; #endif + if (SDL_GetHint(SDL_HINT_RENDER_DRIVER) != NULL) { + CreateWindowAndRenderer(window_flags, SDL_GetHint(SDL_HINT_RENDER_DRIVER)); + } #ifdef HAVE_EGL /* Try to create an EGL compatible window for DRM hardware frame support */ if (!window) {