Browse Source

testffmpeg: only enable AV_PIX_FMT_VULKAN if we have a Vulkan renderer

Sam Lantinga 1 year ago
parent
commit
2d4105ba8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testffmpeg.c

+ 1 - 1
test/testffmpeg.c

@@ -338,7 +338,7 @@ static SDL_bool SupportedPixelFormat(enum AVPixelFormat format)
             return SDL_TRUE;
         }
 #endif
-        if (format == AV_PIX_FMT_VULKAN) {
+        if (vulkan_context && format == AV_PIX_FMT_VULKAN) {
             return SDL_TRUE;
         }
     }