File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -632,6 +632,9 @@ get_supported_pfs(const struct fmt_data *supp_fmts, codec_t *codecs)
632632 return count ;
633633}
634634
635+ #define NO_BLACKLIST_D3D_P010 "sdl3-no-blacklist-d3d-p010"
636+ ADD_TO_PARAM (NO_BLACKLIST_D3D_P010 , "* " NO_BLACKLIST_D3D_P010 "\n"
637+ " Do not blacklist P010 format for Direct3D 11/12.\n" );
635638static void
636639query_renderer_supported_fmts (SDL_Renderer * renderer ,
637640 struct fmt_data * supp_fmts , bool blacklist_p010 )
@@ -648,6 +651,10 @@ query_renderer_supported_fmts(SDL_Renderer *renderer,
648651 return ;
649652 }
650653
654+ if (get_commandline_param (NO_BLACKLIST_D3D_P010 )) {
655+ blacklist_p010 = false;
656+ }
657+
651658 if (log_level >= LOG_LEVEL_VERBOSE ) {
652659 const SDL_PixelFormat * it = fmts ;
653660 MSG (VERBOSE , "Supported pixel formats:\n" );
You can’t perform that action at this time.
0 commit comments